Uploaded image for project: 'Couchbase Documentation'
  1. Couchbase Documentation
  2. DOC-9227

Java Doc for KV subdocument update is not clear

    XMLWordPrintable

Details

    Description

      this documentation is very bad, it does not address correctly the issues associated with updating field inside one document
      specifically
      JsonObject content = JsonObject.create().put(item,value);
      followed by
      MutationResult result = collection.upsert(document_key, content);
      will NOT upsert (item,value) in the doc but will overwrite the doc with only (item,value) in it, which is counter intuitive

      Reporter: philippe gentric
      E-mail: philippe.gentric@amadeus.com

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              hakim.cassimally Hakim Cassimally
              docsite-collector Docs Site Collector
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty