In appwrite version 0 this could be done using
https://domain.com/v1/database/collections/users/documents?limit=100 and then adding &cursor=[id#]
where [id#] is the id number of the record that you are paging after.
In the new version of the app, I am able to get my documents, but I'm only getting 25 results instead of 100 and the cursor no longer works. I've also tried using 'cursorAfter' which also does not seem to work.
What is the new syntax for this to work? (both limit and cursor)
Now you need to use queries Check this: https://appwrite.io/docs/rest#query
Thank you, this helped 🙂
[Solved] How to paginate documents using Rest API?
Recommended threads
- Custom Domains
Hi All, Should be a quick config issue. I'm setting up custom domains on the hosted version. I have verified the domain with the CNAME but appwrite isn't gene...
- Type Mismatch in AppwriteException
There is a discrepancy in the TypeScript type definitions for AppwriteException. The response property is defined as a string in the type definitions, but in pr...
- What Query's are valid for GetDocument?
Documentation shows that Queries are valid here, but doesn't explain which queries are valid. At first I presumed this to be a bug, but before creating a githu...