Setu-TS
    Preparing search index...

    Interface NormalizedQuery

    A repository query with every option resolved to a concrete value — the shape a IDataSource evaluates.

    Produced by the database plugin's normalizeQuery() from the caller's FindOptions, so an adapter never has to reason about absent fields.

    0.2.0

    interface NormalizedQuery {
        cursor?: string;
        filter?: FilterExpression;
        limit: number;
        offset: number;
        orderBy: Record<string, OrderDirection>;
        select: readonly string[];
        where: Record<string, unknown>;
    }
    Index
    cursor?: string

    A keyset cursor position, or undefined when the query starts at the first page. Carried alongside offset rather than replacing it: an offset says "skip this many from the start" and a cursor says "after this row", and the two are contradictory — a query carrying both is refused by name (§3.10).

    Optional portable expression conjoined with where.

    limit: number

    Maximum results, or -1 for unlimited.

    offset: number

    Number of leading rows to skip.

    orderBy: Record<string, OrderDirection>

    Field-to-direction sort specification. Empty means no ordering.

    select: readonly string[]

    Field projection. Empty means all fields.

    where: Record<string, unknown>

    Filter conditions, matched by equality. Empty means no filter.