@earth-app/collegedb
    Preparing search index...

    Interface PaginatedResult<T>

    A page of rows plus the metadata needed to render pagination controls.

    1.2.4

    interface PaginatedResult<T = Record<string, unknown>> {
        limit: number;
        page: number;
        pages: number;
        results: T[];
        total: number;
    }

    Type Parameters

    • T = Record<string, unknown>
    Index
    limit: number

    The page size that was applied

    page: number

    The 1-based page number that was returned

    pages: number

    Total number of pages for total/limit

    results: T[]

    Rows for the requested page

    total: number

    Total rows across all shards that matched (after filter, before paging)