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
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • sdk3.2-backlog
    • 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

            hakim.cassimally Hakim Cassimally added a comment - https://github.com/couchbase/docs-sdk-nodejs/pull/129

            Resolved. Tidy up spun off into Cloned ticket.

            hakim.cassimally Hakim Cassimally added a comment - Resolved. Tidy up spun off into Cloned ticket.

            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