Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
DOC-2021-Oct10-S20, DOC-2021-Oct24-S21, DOC-2021-Nov07-S22
-
1
Description
In the Node.JS SDK 3.2, the atomic counter methods have moved to the BinaryCollection class - the increment() and decrement() methods from the legacy "bucket.counter() in 2.x SDK".
However this is not covered in the SDK documentation, but part of the API reference.
Ajay Upputuri Atomic Counter is covered in https://docs.couchbase.com/nodejs-sdk/current/howtos/kv-operations.html#atomic-counters with examples like:
// increment binary value by 1
This seems to be consistent with what you're saying (collection.binary() returns a BinaryCollection) so is this now covered, or are you still seeing issues elsewhere in the SDK docs?