Class CompositeFilter (2.11.0)

CompositeFilter(mapping=None, *, ignore_unknown_fields=False, **kwargs)

A filter that merges multiple other filters using the given operator.

Attributes

NameDescription
op google.cloud.firestore_v1.types.StructuredQuery.CompositeFilter.Operator
The operator for combining multiple filters.
filters MutableSequence[google.cloud.firestore_v1.types.StructuredQuery.Filter]
The list of filters to combine. Requires: - At least one filter is present.

Classes

Operator

Operator(value)

A composite filter operator.

Values: OPERATOR_UNSPECIFIED (0): Unspecified. This value must not be used. AND (1): Documents are required to satisfy all of the combined filters. OR (2): Documents are required to satisfy at least one of the combined filters.