@metreeca/qest - v0.9.2
    Preparing search index...

    Type Alias Criterion

    Query criterion.

    Represents a projection, filtering, ordering, or pagination criterion in a Query. Query keys are encoded string representation of criteria.

    A unified target suffices as projections and constraints are easily disambiguated after parsing using isIdentifier.

    // Projection: "vendorName=vendor.name"
    { target: "vendorName", pipe: [], path: ["vendor", "name"] }

    // Constraint: ">=year:releaseDate"
    { target: ">=", pipe: ["year"], path: ["releaseDate"] }
    type Criterion = {
        target: Identifier | Operator;
        pipe: readonly Identifier[];
        path: readonly Identifier[];
    }
    Index

    Properties

    Properties

    Property name for projections or constraint Operator.

    pipe: readonly Identifier[]

    Transform pipeline applied to the value, in application order.

    path: readonly Identifier[]

    Property path segments to the target value.