Back

how many query can we pass ?

  • 0
  • Databases
  • Web
debashish
6 Nov, 2023, 18:40

I am just curious to know how many Queries can we pass in array .

databases.listDocuments( '[DATABASE_ID]', '[COLLECTION_ID]', [ Query.equal('title', ['Avatar', 'Lord of the Rings']), Query.greaterThan('year', 1999) ] );

TL;DR
You can pass a maximum of 100 queries, with each query being 4096 characters long. In the example provided, an array of two queries is being passed. The first query checks for the "title" field to be equal to either "Avatar" or "Lord of the Rings", while the second query checks for the "year" field to be greater than 1999.
Kenny
6 Nov, 2023, 19:23

Maximum of 100 queries are allowed, each 4096 characters long.

https://appwrite.io/docs/references/cloud/client-web/databases#listDocuments

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