Returning DocumentId with N1QL

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

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,