The CAS I get from “get()” is an object which contains 2 numbers like that:
{ cas:
{ '0': 2651848704,
'1': 1399048988 }
}
The CAS I get from a N1QL query like “meta(mybucet”).cas" is one number like that:
18271273968467
When I now want to upsert/replace a document and I give the CAS-Object from the “get()” everything will be fine. But what do I do with the CAS I got from N1QL? How can I use it? Do I simply create my own Object like:
{cas: 18271273968467}
Because of another bug (https://issues.couchbase.com/browse/JSCBC-1951) no matter what I currently supply works, so would be great to know what is actually right.
Thanks!