Skip to content

Commit 754ff38

Browse files
Merge pull request #441 from couchbase/upsert-fix
upsert fix
2 parents ebbaee3 + 0f49516 commit 754ff38

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

modules/hello-world/pages/start-using-sdk.adoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ but first let's look at those data operations, and installing the {name-sdk}.
3333

3434
[source,java]
3535
----
36-
include::devguide:example$java/Overview.java[tag=overview,indent=0]
36+
collection.upsert("my-document", JsonObject.create().put("doc", true),
37+
upsertOptions().durability(DurabilityLevel.MAJORITY));
3738
----
3839

3940
`upsert` inserts (creates) the document if it does not exist, or replaces it if it does.

0 commit comments

Comments
 (0)