Discribes a query block that can create a where clause as its following block

interface ICanPrecedeWhere {
    where(
        field: string,
        operator: WhereFilterOp,
        value: unknown,
    ): WhereBlock;
}

Implemented by

Methods

Methods

  • Appends a where clause to the query

    Parameters

    • field: string

      Field on which the where clause is applied

    • operator: WhereFilterOp

      Operator of the clause

    • value: unknown

      Value to check against the value of the field against

    Returns WhereBlock

    The WhereBlock appended to the query