method IRepository.findPage
Since 0.2.0
IRepository.findPage(options: PageOptions): Promise<Page<Entity>>

Find a page of entities by cursor pagination.

Parameters

options: PageOptions

Find options, optionally carrying a cursor position

Return Type

Promise<Page<Entity>>

The page of entities plus a nextCursor that is null when the page is the last

Throws

UnsupportedQueryFeatureError

When the bound data source lacks findPage

Usage

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