Rank 2: Process
Hi there! Is it possible to select just the $id of the document in a query? When I tried this Query.select(['\$id']) I've got an internal server error.
The index for the $id exists and works with other requests perfectly fine.
Votes
0
Replies
8
Participants
Unknown
Messages
9
Rank 2: Process
Hi there! Is it possible to select just the $id of the document in a query? When I tried this Query.select(['\$id']) I've got an internal server error.
The index for the $id exists and works with other requests perfectly fine.
Hi, it is not possible currently, will be possible in newer version
Can you not just use getDocument()?
Rank 2: Process
Alright, thanks 👍
Rank 2: Process
No, that would only return a single document. I want a list of Document ids based on other queries
How?
Can you elaborate on your use-case?
Rank 2: Process
Well since relations are still in beta I am writing my own join tables etc. Therefore it would be nice to get only ids instead of the whole document. But of course it could be done in other ways
Gotcha, so you want to select the $id based on the query
Rank 2: Process
Yes correct