Skip to content
@drupflare/spool v1.0.0 GitHub
    Preparing search index...

    Type Alias QueryResult

    the page of items a query selects, with the size of the filtered collection and the page count

    type QueryResult = {
        items: Record<string, unknown>[];
        page: number;
        pages: number;
        total: number;
    }
    Index
    items: Record<string, unknown>[]

    the items on this page

    page: number

    the 1-based page returned

    pages: number

    number of pages, at least 1

    total: number

    items matching the filters, before paging