Skip to main content

Pagination

Overview

The Pagination class defines the parameters used for pagination in the request.

Parameters

In the pagination request, the following parameters can be provided:

cursor: A string that can be either null or point to the last ID in the response. It serves as a reference point for fetching the next set of data. skip: An optional number representing the number of rows or documents to skip in the database before returning the results. limit: An optional number specifying the maximum number of rows or documents to include in the response. Example input format for pagination request:

Usage

To use the pagination object effectively, users must follow the correct payload format. Each pagination key should be sent in the following format:

paginationParams[cursor]=<cursor_value>
paginationParams[skip]=<skip_value>
paginationParams[limit]=<limit_value>

Usage

To use the pagination object effectively, users must follow the correct payload format. Each pagination key should be sent in the following format:

  • Example
    • Considering the user want to filter all the objects with below conditions
      • skip first 10 objects
      • limit 50 objects per response

User must send the request with below Query params

paginationParams[skip]=10&paginationParams[limit]=50