method IDataSource.findPage
IDataSource.findPage(query: NormalizedQuery): Promise<PageResult>

Find a page of entities by cursor pagination.

Optional. The member exists on every in-repo adapter but is declared optional so an out-of-repo implementor that cannot page by cursor keeps compiling. When it is absent, the repository above refuses cursor paging by name (UnsupportedQueryFeatureError): absence means "cannot page by cursor", never "there are no more rows" — the distinction an absent member cannot otherwise preserve.

Parameters

The fully-resolved query, carrying an incoming cursor

Return Type

Promise<PageResult>

The matching rows plus a nextCursor that is null when no further page exists

Usage

import { type IDataSource } from "common/src/index.ts";