Please, what is to correct way that the URL should look like?
I looked at the documentation, but it's unclear to me. And I cannot figure this out for hours already.
You have to pass the queries as an object in the request body
Sorry still I cannot figure this out. Please 🙏 how should I correctly fill this?
This results in this:
> GET /v1/databases/63a97cf0a759183bd1c6/collections/63a97d42d1d2518dea90/documentsHTTP/1.1 HTTP/1.1
> Host: appwrite.app.timenoder.com
> User-Agent: insomnia/2023.1.0
> Content-Type: multipart/form-data; boundary=X-INSOMNIA-BOUNDARY
> X-Appwrite-Project: 64631bad5cbf9ab42392
> Accept: */*
> Content-Length: 126
| --X-INSOMNIA-BOUNDARY
| Content-Disposition: form-data; name="queries[]"
| equal("name", ["Test2"])
| --X-INSOMNIA-BOUNDARY--
Can you try to pass it in the URL?
As such
documents?queries[]=Query.equal("name", ["Test2"])
Let me know if that works
Finally 🙏
The problem was in Insomnia (through which I am making the API calls), it does something unxespected. The solution was in using Postman.
Thank you for responding!. But close enough :).
....v1?queries[]=equal("name", [Test1])
[SOLVED] How to include queries in the basic get request?
Recommended threads
- Type Mismatch in AppwriteException
There is a discrepancy in the TypeScript type definitions for AppwriteException. The response property is defined as a string in the type definitions, but in pr...
- What Query's are valid for GetDocument?
Documentation shows that Queries are valid here, but doesn't explain which queries are valid. At first I presumed this to be a bug, but before creating a githu...
- Appwrite exception: user_unauthorized, t...
After refreshing the app it is working perfectly