Details
-
Bug
-
Resolution: Fixed
-
Major
-
None
-
None
Description
missing example of how to replace full document with the subdoc API while also updating the xattrs.
JsonObject docContent = JsonObject.create().put("body", "value"); |
collection.mutateIn("doc-id", Arrays.asList( |
MutateInSpec.upsert("foo", "bar").xattr().createPath(), |
MutateInSpec.replace("", docContent)), |
MutateInOptions.mutateInOptions().storeSemantics(StoreSemantics.UPSERT)
|
);
|
The empty “” represent the full doc set.