Back

[CLOSED] I need all documents in a collection.

  • 0
  • Databases
alitalipcalikoglu
6 Apr, 2023, 14:34

How can I get all documents? (I tried the functions but it also has a limit.) Is there a way to find min max values like in SQL?

TL;DR
Title: [CLOSED] Request for all documents in a collection User is looking for a way to retrieve all documents in a collection, regardless of the limit currently imposed. Support suggests using cursor pagination and provides an example for reference. User reiterates the need for all documents, regardless of the volume. Support recommends checking the documentation for queries and provides a link. User asks if they have tried a particular solution, to which there is no response. User also inquires about finding min-max values like in SQL. Solution: Support provides a solution using cursor pagination by making a recursive loop. However, there is no direct way to retrieve
joeyouss
6 Apr, 2023, 14:40
alitalipcalikoglu
6 Apr, 2023, 14:41

i need all documents in collection, 10K docs, 100K docs. etc.

alitalipcalikoglu
6 Apr, 2023, 14:41

I need all documents with no limits.

joeyouss
6 Apr, 2023, 15:07

We are working on it - as of right now to increase the limit from 100, You wound need to make a recursive loop and use cursor pagination to get all the docs. Example: https://github.com/Meldiron/almost-gist/blob/main/backend/functions/onGistChange/src/index.js#L116-L143

alitalipcalikoglu
6 Apr, 2023, 15:22

I used this but it takes too long.

joeyouss
6 Apr, 2023, 15:23

I hear you - we are working on making it better and improving the limit of documents

alitalipcalikoglu
6 Apr, 2023, 15:24

Thanks for be interested.

joeyouss
6 Apr, 2023, 15:44

[CLOSED] I need all documents in a 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