@squidcloud/backend
    Preparing search index...

    Interface OtherContextCondition<Doc, F>

    A condition using operators other than 'in' or 'not in' for field comparisons.

    interface OtherContextCondition<
        Doc extends DocumentData = any,
        F extends Paths<Doc> = Paths<Doc>,
    > {
        fieldName: F;
        operator:
            | "array_includes_some"
            | "array_includes_all"
            | "array_not_includes"
            | ">="
            | "<="
            | ">"
            | "<"
            | "like"
            | "not like"
            | "like_cs"
            | "not like_cs";
        value: any;
    }

    Type Parameters

    • Doc extends DocumentData = any
    • F extends Paths<Doc> = Paths<Doc>

    Hierarchy

    Index

    Properties

    fieldName: F

    The field name to apply the condition to.

    operator:
        | "array_includes_some"
        | "array_includes_all"
        | "array_not_includes"
        | ">="
        | "<="
        | ">"
        | "<"
        | "like"
        | "not like"
        | "like_cs"
        | "not like_cs"

    The operator to use for the comparison, excluding 'in' and 'not in'.

    value: any

    The value to compare against the field.