Skip to content

Commit

Permalink
javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
teosarca committed Sep 7, 2017
1 parent 226895b commit 8ce1cac
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,7 @@ public JSONDocument duplicate(

final DocumentPath fromDocumentPath = DocumentPath.rootDocumentPath(WindowId.fromJson(windowIdStr), DocumentId.of(documentIdStr));

// NOTE: deliberately we are not running in a transaction so basically we will ask the duplicate method to copy as much as it can ;)
final Document documentCopy = documentCollection.duplicateDocument(fromDocumentPath);
return JSONDocument.ofDocument(documentCopy, newJSONOptions().setShowAdvancedFields(advanced).build());
}
Expand Down

0 comments on commit 8ce1cac

Please sign in to comment.