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

Node.js: first parameter of .arrayAppend must be a valid path or an empty sting

    XMLWordPrintable

Details

    • Task
    • Resolution: Fixed
    • Major
    • sdk3.2-backlog
    • None
    • sdk
    • None

    Description

      Opened in https://github.com/couchbase/docs-sdk-nodejs/issues/117

      the examples of 

      seems there is an error in doc - passing false as a first parameter gives "path mismatch" error:

      https://github.com/couchbase/docs-sdk-nodejs/blob/0fc2edb71cc8974d8b04190a940d6f20f11a3660/modules/howtos/examples/subdoc.js#L112-L116

       

      It looks like this example should be written something like 

      couchbase.MutateInSpec.arrayAppend("", ["elem1", "elem2", "elem3"], { multi: true }), 

      but need to test and run all examples.
       

      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
              hakim.cassimally Hakim Cassimally
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty