Back

Cant get all documents with listDocuments?

  • 0
  • Self Hosted
  • Flutter
DennisLBC
27 Feb, 2024, 17:44

Not sure if I am missing something dumb here but I want to grab every single document in a collection that has 200 documents but no matter what I do I only ever get 25.

TypeScript
        databaseId: AppWriteConstants.databaseId,
        collectionId: AppWriteConstants.collectionId,
      );```

I am trying to test something and if it works I won't actually need to be doing this cause instead of doing this each time on the client I will just create a summary file that has the details I need and set that from a server function. But I never realized there was this limitation?
TL;DR
Issue: Developer is only able to retrieve 25 documents from a collection using listDocuments despite expecting 200. Solution: This limitation is due to the default limit set by the function. To retrieve all documents, developers can specify the 'limit' parameter with a higher value to fetch all desired documents from the collection.
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