Skip to main content
zerotal

Documentation


Documentation / zerotal / orm / CursorPaginateResult

Interface: CursorPaginateResult<T>

Defined in: packages/orm/src/db/types.ts:263

Result of QueryBuilder.cursorPaginate — id-based cursor pagination.

Type Parameters

T

T = Record<string, unknown>

Properties

data

data: T[]

Defined in: packages/orm/src/db/types.ts:264


nextCursor

nextCursor: number | null

Defined in: packages/orm/src/db/types.ts:266

Cursor pointing past the last item, or null on the final page.


prevCursor

prevCursor: number | null

Defined in: packages/orm/src/db/types.ts:268

Cursor for the page that preceded this one, or null on the first page.


hasMore

hasMore: boolean

Defined in: packages/orm/src/db/types.ts:270

True when another page follows (equivalent to nextCursor !== null).