Skip to main content

Interface: PaginationResult<T>

server.PaginationResult

The result of paginating using paginate.

Type parameters

Name
T

Properties

page

page: T[]

The page of results.

Defined in

server/pagination.ts:30


isDone

isDone: boolean

Have we reached the end of the results?

Defined in

server/pagination.ts:35


continueCursor

continueCursor: string

A Cursor to continue loading more results.

Defined in

server/pagination.ts:40


splitCursor

Optional splitCursor: null | string

A Cursor to split the page into two, so the page from (cursor, continueCursor] can be replaced by two pages (cursor, splitCursor] and (splitCursor, continueCursor].

Defined in

server/pagination.ts:47


pageStatus

Optional pageStatus: null | "SplitRecommended" | "SplitRequired"

When a query reads too much data, it may return 'SplitRecommended' to indicate that the page should be split into two with splitCursor. When a query reads so much data that page might be incomplete, its status becomes 'SplitRequired'.

Defined in

server/pagination.ts:55