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()?
Alright, thanks 👍
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?
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
Yes correct
Recommended threads
- Urgent help with removed databases
Hi <@564158268319203348> <@501784879638249472> I wrote to paid plan support about this but no response as of yet… About an hour ago one of the interns from o...
- MariaDB refuses to connect to appwrite
Earlier, I tried updating my Appwrite version from 18.1.x to the latest release because my Flutter package required it to function properly. I used the official...
- Custom API domain is unreachable
Earlier my custom api domain was working fine. Now it seems to be offline without a trace a few hours later. I didn't change anything, all the relevant DNS reco...