Back

curl or postman for queries

  • 1
  • Databases
  • REST API
1AR
30 Apr, 2024, 19:56

Trying to get a query for listing documents going, but the syntax for this is not clear in any documentation I can find, Anybody have any practical experience with this? ex. of some variations I have tried with no success, all return diffrent variations of 400 or 500 {{baseUrl}}/databases/:databaseId/collections/:collectionId/documents?queries[]="isNotNull('name')" {{baseUrl}}/databases/:databaseId/collections/:collectionId/documents?queries=["isNotNull('name')"]

""message": "Invalid queries param: Value must a valid array no longer than 100 items and Value must be a valid string and at least 1 chars and no longer than 4096 chars","

TL;DR
Developers are struggling with query syntax for listing documents using curl or Postman. Different variations tried have returned errors. The correct format for queries must be a valid array no longer than 100 items in length, with each item being a valid string between 1 and 4096 characters.
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