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
- Collections list not showing up when try...
I'm trying to create new relationship attribute but both one way and two way relationship is not showing up collections list to connect with my relationship att...
- I have try to use the appwrite in to the...
Invalid Origin. Register your new client (oailedjdbkhlkakmnnapoonllbnfmfij) as a new Web (Chrome Extension) platform on your project console dashboard
- Paused project can't activate
I have failed to reactivate one my projects which had been paused