$result = $databases->listDocuments($databaseId, $collectionId); $data = json_encode($result); here i want to all those documents, as data will too big and anonymous amount(1k or 10k...),is there query to achieve this?
Check Queries.limit on doc
thanks,but i didn't find any doc about query in PHP
yes,i was following this doc, but how to attach query with them?$params = [ 'limit' => 5000, ]; $result = $databases->listDocuments($databaseId, $collectionId, $params); $data = json_encode($result); (is this the right way to do this?)
Check this : https://github.com/appwrite/sdk-for-php/issues/12
i really appreciate your help,but what if i don't want to use any limit..bcz you we will never know how much data is there?so should i leave limit value empty?
For what I know, you can't query "unlimited" documents. If you want to query all, you can call listDocument once, with limit(0), it'll give you total document, and call again listDocument with limit = total
If I remember, max limit is 5000
Or you can paginate, ofc
[Solved]List all documents without limit, as my data is too big.
[SOLVED] List all documents without limit, as my data is too big.
Recommended threads
- Auto Updating Backend & Auth via Appwrit...
<@870607367597850624> Hey everyone ๐ I wanted to ask to ask for a friend, heโs asking if Appwrite be used in a similar way to Supabase when integrated with AI ...
- execution failed
When executing an appwrite function, I'm getting a 500 error, but I don't see it in executions. This issue appeared today. Here's the appwrite function ID: 68b4...
- User Labels use Operator.arrayInsert(โla...
Can I use the new db operators on user labels or roles?