Firestore in Datastore mode V1 API - Module Google::Cloud::Datastore::V1::PropertyFilter::Operator (v0.10.0)

Reference documentation and code samples for the Firestore in Datastore mode V1 API module Google::Cloud::Datastore::V1::PropertyFilter::Operator.

A property filter operator.

Constants

OPERATOR_UNSPECIFIED

value: 0
Unspecified. This value must not be used.

LESS_THAN

value: 1

The given property is less than the given value.

Requires:

  • That property comes first in order_by.

LESS_THAN_OR_EQUAL

value: 2

The given property is less than or equal to the given value.

Requires:

  • That property comes first in order_by.

GREATER_THAN

value: 3

The given property is greater than the given value.

Requires:

  • That property comes first in order_by.

GREATER_THAN_OR_EQUAL

value: 4

The given property is greater than or equal to the given value.

Requires:

  • That property comes first in order_by.

EQUAL

value: 5
The given property is equal to the given value.

IN

value: 6

The given property is equal to at least one value in the given array.

Requires:

  • That value is a non-empty ArrayValue with at most 10 values.
  • No other IN or NOT_IN is in the same query.

NOT_EQUAL

value: 9

The given property is not equal to the given value.

Requires:

  • No other NOT_EQUAL or NOT_IN is in the same query.
  • That property comes first in the order_by.

HAS_ANCESTOR

value: 11

Limit the result set to the given entity and its descendants.

Requires:

  • That value is an entity key.
  • No other HAS_ANCESTOR is in the same query.

NOT_IN

value: 13

The value of the property is not in the given array.

Requires:

  • That value is a non-empty ArrayValue with at most 10 values.
  • No other IN, NOT_IN, NOT_EQUAL is in the same query.
  • That field comes first in the order_by.