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.Did you look at this? https://appwrite.io/docs/rest#query
Thanks
[SOLVED] Using queries in REST API
Recommended threads
- Auto Updating Backend & Auth via Appwrit...
<@870607367597850624> Hey everyone 👋 I wanted to ask to ask for a friend, he’s asking if Appwrite be used in a similar way to Supabase when integrated with AI ...
- Is Database Operators available in Cloud...
Is it possible to do the above?
- How to use appwrite types
I am using appwrite types --language ts ./types to generate the types yielding something like: ``` import type { Models } from 'node-appwrite'; // This file i...