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

        For Gerrit Dashboard: JSCBC-714
        # Subject Branch Project Status CR V

        Activity

          jchook Wes R created issue -
          brett19 Brett Lawson made changes -
          Field Original Value New Value
          Resolution Incomplete [ 4 ]
          Status New [ 10003 ] Resolved [ 5 ]
          brett19 Brett Lawson made changes -
          Resolution Incomplete [ 4 ]
          Status Resolved [ 5 ] Reopened [ 4 ]
          brett19 Brett Lawson made changes -
          Fix Version/s 3.0.2 [ 16736 ]
          brett19 Brett Lawson made changes -
          Story Points 1
          brett19 Brett Lawson made changes -
          Resolution Fixed [ 1 ]
          Status Reopened [ 4 ] Resolved [ 5 ]

          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