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
- general_unauthorized_scope
localhost oauth not working. general_unauthorized_scope error showing. { "message": "User (role: guests) missing scopes ([\"account\"])", "code": 401, ...
- I recently switched to TablesDb. When li...
olddb.list_documents( queries =[ Query.order_desc("timestamp"), Query.equal("isPosted",[False]) ] ) Above works fine and reruns documents But below don't return...
- Database error validating 'min' and 'max...
I keep seeing an error when I try to add a column to a database table within the AppWrite cloud UI. I also see this error when trying to create or update a reco...