We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 75e5d06 commit 0f49516Copy full SHA for 0f49516
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