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
- Appwrite Sites: ERR_TOO_MANY_REDIRECTS o...
So, my domain was working perfectly fine with Vercel. I was using cloudflare CDN (still am) but CNAME was DNS-only. I switched over to appwrite, CNAME is still ...
- Invalid type for attribute 'email': emai...
I'm using the node-appwrite SDK to create a table, the column payload looks like this: ```json [{"key":"email","type":"email","required":true, "size": 512}] ``...
- Project restoration button in console
The project restore button in console is taking no effect, i have tried several times and still nothing, it gives same popup if i reload