How to get doc's rev info?

How can I get doc’s rev info (not cas info) by N1QL,
such as


So I can using the rev and 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).