interface Page
Since 0.2.0

A single page of entities returned by IRepository.findPage, plus the cursor that continues to the next page (or null when the page is the last).

The typed form of PageResult: rows carries Entity[] rather than Record<string, unknown>[].

Type Parameters

Entity = Record<string, unknown>

The entity shape the repository manages

Properties

readonly
rows: Entity[]

The rows in this page, already filtered, sorted, paginated and projected.

readonly
nextCursor: string | null

A cursor to fetch the next page, or null when no further page exists.

Usage

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