Even checking the documentation, I didn't understand how to use queries via REST API.
I'm trying to fetch a document with Id=3: /collections/GRUPO/documents?queries[select(["$id"])]="3"
This gives me the following error: "Query not valid: Query operator invalid: "
What am I doing wrong?
TL;DR
The user is seeking help with using queries in the REST API. They have provided an example of how to use queries, but they are still confused. They tried fetching a document with ID=3 but received an error message saying the query is not valid and the query operator is invalid. They are requesting assistance in what they might be doing wrong.
Solution: The user should correct their query syntax. Instead of using square brackets, they should use parentheses for the query options. For example, they should try using `/collections/GRUPO/documents?queries=(select(["$id"]):"3")` to fetch the document with ID=Use it like so
TypeScript
queries[]=select(["$id"])&queries[]=limit(3)
For more info, see the docs: https://appwrite.io/docs/rest#query
Recommended threads
- 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...
- "Invalid console fingerprint" when unpau...
I've tried logging out and logging back in, still can't figure out why this is happening.
- Inviting members while SMTP is disabled ...
Issue: https://github.com/appwrite/console/issues/3125 PR: https://github.com/appwrite/console/pull/3126