Limit

Pagination.

To limit the number of objects you get, use the limit parameter. The following query will return the first 5 objects:

📘

Note

Max value for limit parameter is 1500. The value is Integer (Number JavaScript).

Examples

curl -X POST \
  -H "X-Appery-Database-Id: 526fdbd8e4b07c3286b537f1" \
  -H "Content-Type: application/json" \
  -d '{"limit":5}' \
  https://api.appery.io/1/db/collections/students/query
In addition to specifying how many objects to return, you can also specify from which object count to start with the skip parameter. The following example will start at object 6 (skip the first 5) and return (limit) 5 objects.
curl -X POST \
  -H "X-Appery-Database-Id: 544a5cdfe4b03d005b6233b9" \
  -H "Content-Type: application/json" \
  -d '{"limit":5, "skip":5}' \
  https://api.appery.io/1/db/collections/students/query