@squidcloud/client
    Preparing search index...

    Interface CompositeCondition<Doc>

    A composite fields query condition combining multiple simple conditions. Just a list of simple conditions with specific set of operators. It should be evaluated this way: If A, B, C are the conditions and A' = A with '==' operator: A || (A' && B) || (A' && B' && C)

    interface CompositeCondition<Doc extends DocumentData = any> {
        fields: SimpleCondition<
            Doc,
            UnionKeys<
                {
                    [k in string
                    | number
                    | symbol]-?: k extends string
                    | number
                        ?
                            | Record<`${k<k>}`, Doc[k<k>]>
                            | (
                                Required<Doc>[k<k>] extends any[]
                                    ? never
                                    : Required<(...)>[k<(...)>] extends object
                                        ? { [k in (...)]-?: (...) }[keyof (...)]
                                        : never
                            )
                        : never
                }[keyof Doc],
            >,
            CompositeConditionOperator,
        >[];
    }

    Type Parameters

    Index

    Properties

    Properties

    fields: SimpleCondition<
        Doc,
        UnionKeys<
            {
                [k in string
                | number
                | symbol]-?: k extends string
                | number
                    ?
                        | Record<`${k<k>}`, Doc[k<k>]>
                        | (
                            Required<Doc>[k<k>] extends any[]
                                ? never
                                : Required<(...)>[k<(...)>] extends object
                                    ? { [k in (...)]-?: (...) }[keyof (...)]
                                    : never
                        )
                    : never
            }[keyof Doc],
        >,
        CompositeConditionOperator,
    >[]

    An array of simple conditions with restricted operators for composite evaluation.