Skip to content

Pagination

Pagination allows fetch data from Database without over loading the DB.

In this package users can paginate the response by passing limit and page query parameters when call the API endpoint.

Info

If you never pass this limit and page params its automatically defaults to return limit = 10 and page = 1. This behaviour is to prevent un intentional fetching of all data from db collection and overload the db and server on production environments.

Example Query
/orders?limit=12&page=2