
TypeScript
curl -X GET "https://cloud.appwrite.io/v1/databases/<db-id>/collections/<c-id>/documents" -H "X-Appwrite-Project: <project-id>" -H "X-Appwrite-Key: <key>" -H "Content-Type: application/json" -d '{
"queries": [
{
"method": "equal",
"attribute": "phoneNumber",
"value": ["XXXXXXXXXXX"]
}
]
}'
This is returning ALL of the documents - not the matching query.
TL;DR
Title: REST API not filtering queries correctly
Developers are experiencing an issue with their REST API queries, as all documents are being returned instead of the filtered ones as intended.
Solution: Ensure that the query parameters are correctly formatted. Check the attributes and values for any discrepancies.Recommended threads
- Error importing data after server migrat...
Hello, I recently purchased a new web server and when trying to migrate my data from the old server to the new (both self-hosted instances of appwrite on coolif...
- deleteDocments is not a function
Hello. At the bottom of my project's console, in the footer, I have `Version 1.7.4`. However, when I run my server side function, I am told that `databases.dele...
- Server Error when updating an existing d...
I am getting "AppwriteException: general_unknown, Server Error (500)" when using UpsertDocument on Appwrite Cloud from a function with Dart 3.5 runtime and dart...
