Back

[SOLVED] Using queries in REST API

  • 0
  • Databases
raizel0609
3 Apr, 2023, 03:17

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
3 Apr, 2023, 03:19
raizel0609
3 Apr, 2023, 08:13

Thanks

Drake
3 Apr, 2023, 14:39

[SOLVED] Using queries in REST API

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more