Back

How to set limit for documents returned in api call

  • 0
  • Web
  • REST API
naveen
9 Mar, 2024, 17:24

Iam using postman to query documents and i have successfully queried the documents but its only displaying the first 25 documents , i tried to change this by setting limit in parameters option but its not working. I tried the get request in the following way: http://<domain>/v1/databases/<database id>/collections/<collection id>/documents?limit=100 Am i missing something?

TL;DR
Developers want to change the limit for documents returned in an API call using Postman, but setting the limit parameter in the URL isn't working. Solution: Ensure the server-side code also accounts for the limit parameter in the API request to correctly return the desired number of documents. Double-check the API documentation or backend implementation to ensure proper handling of the limit parameter.
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