Returning DocumentId with N1QL

#1

Hi, when I query a document with N1QL how to I return the DocumentId.

#2

Hey @DaniyelF,

Why not do something like this:

select META(`bucket-name`).id from `bucket-name` limit 3;

By using META you have access to things like ID and CAS.

Best,