method BaseRepository.prototype.findPage
BaseRepository.prototype.findPage(options: PageOptions): Promise<Page<Entity>>

Find a page of entities by cursor pagination.

Refuses by name with UnsupportedQueryFeatureError when the bound data source does not expose a findPage member — which is true for every shipped adapter until the milestone that implements cursor paging on that backend. Absence means "cannot page by cursor", never "there are no more rows".

Parameters

options: PageOptions

Find options, optionally carrying a cursor

Return Type

Promise<Page<Entity>>

The page of entities plus a nextCursor

Throws

UnsupportedQueryFeatureError

When the data source lacks findPage

PageNormalizationError

When the query carries both a non-zero offset and a cursor (§3.10 — rejected, never a synchronous throw)

Usage

import { BaseRepository } from "database-plugin/src/index.ts";