Skip to main content

Interface: CompositeCondition<Doc>

A composite fields query condition. 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)

Type parameters

NameType
Docextends DocumentData = any

Properties

fields

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