Skip to content
Back

Recommended way getting all documents?

  • 0
  • General
Zynth
26 Oct, 2024, 11:58

I tried searching a bit around, but I can't seem to find a definitive recommended way returning all (or at least a higher number than 25!) documents. Do any of you have some code examples, or perhaps there is documentation I was unable to find?

I figure I would just have to add a pagination loop just to forcefully get all results, or at least up to a specific number, but I would just like to verify that is the norm when working with appwrite, since the limit is so low - would be nice to be able to just set "Give me 1000 results" in one query 😅

TL;DR
To get more than 25 documents, developers can use a pagination loop to retrieve the desired number of results. This approach is commonly used when working with appwrite due to the low default limit.
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