raizel0609
Any example of using queries in the context of REST API?
Here's an example: https://appwrite.server/v1/databases/DB_ID/collections/COL_ID/documents?queries=["equal(customerId, CUSTOMER_ID)"]
Whatever format I tried, I keep getting response:
TypeScript
{
"message": "Invalid queries: Value must a valid array and Value must be a valid string and no longer than 4096 chars",
"code": 400,
"type": "general_argument_invalid",
"version": "1.2.1"
}
TL;DR
The user is having trouble using queries in a REST API. They tried different formats but keep getting an error message stating that the queries are invalid. They provided an example of their code. Drake
Did you look at this? https://appwrite.io/docs/rest#query
raizel0609
Thanks
Drake
[SOLVED] Using queries in REST API
Recommended threads
- Seed db
hello there... is this correct way to seed appwrite
- Query Appwrite
Hello, I have a question regarding Queries in Appwrite. If I have a string "YYYY-MM", how can I query the $createdAt column to match this filter?
- 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...