How can I get doc’s rev info (not cas info) by N1QL,
such as
2-35ff07c8f62be37449db1c5ca2edf5aa
So I can using the rev and doc.id to update the doc.
How can I get doc’s rev info (not cas info) by N1QL,
such as
2-35ff07c8f62be37449db1c5ca2edf5aa
So I can using the rev and doc.id to update the doc.
Hi, This is how you get metadata from documents with N1QL
SELECT Meta() from default
are you working with Couchbase Mobile or just Couchbase Server? Because if you modify a couchbase mobile document directly with N1QL, it will not go through the sync gateway, thus will not be seen by your devices.
yes, I am working with Couchbase Mobile. So I need to provide rev of docs to modify docs.
but I can not get rev info from N1QL(using meta() function).