Details
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! |
})
|