
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
- Any example for using Appwrite with Verc...
Can not find an example on this.
- Best practice for calling 3P APIs with p...
Hey everyone! Looking for guidance on the recommended approach for securely calling third-party APIs from my Appwrite-hosted application. **Current Setup:** - ...
- [Bug] `collection` is an unusable attrib...
**Reproduction** - Create a string attribute called `collection` in Appwrite databases - Create a new document using the `node-appwrite` SDK and assign any str...
