Class UnaryFilter (2.11.0)

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

Attributes

NameDescription
op google.cloud.firestore_v1.types.StructuredQuery.UnaryFilter.Operator
The unary operator to apply.
field google.cloud.firestore_v1.types.StructuredQuery.FieldReference
The field to which to apply the operator. This field is a member of oneof_ operand_type.

Classes

Operator

Operator(value)

A unary operator.

Values: OPERATOR_UNSPECIFIED (0): Unspecified. This value must not be used. IS_NAN (2): The given field is equal to NaN. IS_NULL (3): The given field is equal to NULL. IS_NOT_NAN (4): The given field is not equal to NaN.

    Requires:

    -  No other `NOT_EQUAL`, `NOT_IN`, `IS_NOT_NULL`, or
       `IS_NOT_NAN`.
    -  That `field` comes first in the `order_by`.
IS_NOT_NULL (5):
    The given `field` is not equal to `NULL`.

    Requires:

    -  A single `NOT_EQUAL`, `NOT_IN`, `IS_NOT_NULL`, or
       `IS_NOT_NAN`.
    -  That `field` comes first in the `order_by`.