Details
-
Improvement
-
Resolution: Fixed
-
Major
-
None
-
None
Description
The example for using CAS here shows using CAS for node as ...
new_result = cb1.replace(
|
'docid', |
new_doc,
|
cas=cur_cas)
|
But it should be ...
new_result = cb1.replace(
|
'docid', |
new_doc,
|
{cas: cur_cas})
|
There aren't many good examples for node.js, let alone w/CAS. Found test case on line 316 [in the source git|https://github.com/couchbase/couchnode/blob/master/test/crud.test.js] that shows correct usage.