How N1QL get doc ID?

40-beta

#1

I use N1QL to select list of results, but seem to be that the results not shown ID of these documents.

So how do use N1QL query that the result includes doc.id?


#2

select meta(t).id from t;


#3

Thanks @geraldss.
It’s done.


#4

How make order with this query please.
thx


#5
SELECT META(t).id
FROM t
ORDER BY META(t).id;

#6

thx Geral
(from Orange Sophia Antipolis 18/02/16 :wink: )


#7

Salut Marwen! :relaxed:


#8

Salut Gerald
Thx for again for the presentation in February and for your answer
:slight_smile: :slight_smile: