Efficiently navigate and retrieve data in manageable chunks using Comet APIβs pagination mechanism.
first
: Number of records to fetch after the provided cursor.after
: Cursor to start fetching records after.last
: Number of records to fetch before the provided cursor.before
: Cursor to start fetching records before.first/after
or last/before
should be provided in a single query. If no pagination parameters are provided, the default behavior is to retrieve the first 10 records.
pageInfo
field provides essential details about the current page:
startCursor
: The cursor for the first record on the current page.endCursor
: The cursor for the last record on the current page.hasNextPage
: A boolean indicating if there are more records after the current page.hasPreviousPage
: A boolean indicating if there are records before the current page.totalCount
: The total number of records.