Skip to main content

Interface: PaginationOptions

server.PaginationOptions

The options passed to paginate.

To use this type in argument validation, use the paginationOptsValidator.

Properties

numItems

numItems: number

Number of items to load in this page of results.

Note: This is only an initial value!

If you are running this paginated query in a reactive query function, you may receive more or less items than this if items were added to or removed from the query range.

Defined in

server/pagination.ts:76


cursor

cursor: null | string

A Cursor representing the start of this page or null to start at the beginning of the query results.

Defined in

server/pagination.ts:82