Uploaded image for project: 'Couchbase node.js Client Library'
  1. Couchbase node.js Client Library
  2. JSCBC-714

mutateIn() increment missing result.content

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 3.0.2
    • 3.0.1
    • library
    • Debian Linux, Node 12.16.1, Couchbase 6.5
    • 1

    Description

      According to the docs, I should have access to `result.content[0]` to get the value resulting from an atomic subdocument increment.

      However, the SDK returns no such value.

      couchbase = require('couchbase')
      cluster = couchbase.Cluster('http://127.0.0.1')
      collection = cluster.bucket('myBucket').defaultCollection()
      collection.upsert('test123', {a: 5})
      collection.mutateIn('test123', [
        couchbase.MutateInSpec.increment('a', 21),
      ]).then(result => {
        result.content[0] // Error!
      })
      

       

      Attachments

        Activity

          People

            brett19 Brett Lawson
            jchook Wes R
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              PagerDuty