@squidcloud/client
    Preparing search index...

    Class Pagination<ReturnType>

    Pagination provides a paginated view over a dataset, supporting navigation through pages, real-time updates, and sorting based on predefined criteria.

    Type Parameters

    • ReturnType
    Index

    Methods

    • Jumps to the last page of the pagination. This page will always have the last pageSize elements of the underlying query, regardless of whether the total document count is evenly divisible by the page size.

      Returns Promise<PaginationState<ReturnType>>

    • Unsubscribes from the pagination.

      Returns void