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
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.1
    • 3.0.2
    • 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

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

        Activity

          People

            brett19 Brett Lawson
            jchook Wes R
            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