We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ebbaee3 + 0f49516 commit 754ff38Copy full SHA for 754ff38
1 file changed
modules/hello-world/pages/start-using-sdk.adoc
@@ -33,7 +33,8 @@ but first let's look at those data operations, and installing the {name-sdk}.
33
34
[source,java]
35
----
36
-include::devguide:example$java/Overview.java[tag=overview,indent=0]
+collection.upsert("my-document", JsonObject.create().put("doc", true),
37
+ upsertOptions().durability(DurabilityLevel.MAJORITY));
38
39
40
`upsert` inserts (creates) the document if it does not exist, or replaces it if it does.
0 commit comments