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

Add clarification of which operators allowed in the subdoc api for arrays

    XMLWordPrintable

Details

    Description

      In this section there is an example of insert,

      https://docs.couchbase.com/java-sdk/current/howtos/subdocument-operations.html#array-insertion

      we should add a clarification which operators allowed here, or add a section,
      for example, replacing an items is sometimes critical

      MutateInResult result = collection.mutateIn("hotel_1501",
          Collections.singletonList(MutateInSpec.replace("foo[1]", newFooObject)));
      

      Reporter: Roi Katz
      E-mail: roi.katz@Couchbase.com

      Attachments

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

        Activity

          People

            richard.smedley Richard Smedley
            roi.katz Roi Katz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty