Setu-TS
    Preparing search index...

    Interface Page<Entity>

    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>[].

    0.2.0

    interface Page<Entity = Record<string, unknown>> {
        nextCursor: string | null;
        rows: Entity[];
    }

    Type Parameters

    • Entity = Record<string, unknown>

      The entity shape the repository manages

    Index
    nextCursor: string | null

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

    rows: Entity[]

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