Reference documentation and code samples for the Cloud Firestore V1 API module Google::Cloud::Firestore::V1::StructuredQuery::FieldFilter::Operator.
A field filter operator.
Constants
OPERATOR_UNSPECIFIED
value: 0
Unspecified. This value must not be used.
LESS_THAN
value: 1
The given field
is less than the given value
.
Requires:
- That
field
come first inorder_by
.
LESS_THAN_OR_EQUAL
value: 2
The given field
is less than or equal to the given value
.
Requires:
- That
field
come first inorder_by
.
GREATER_THAN
value: 3
The given field
is greater than the given value
.
Requires:
- That
field
come first inorder_by
.
GREATER_THAN_OR_EQUAL
value: 4
The given field
is greater than or equal to the given value
.
Requires:
- That
field
come first inorder_by
.
EQUAL
value: 5
The given field
is equal to the given value
.
NOT_EQUAL
value: 6
The given field
is not equal to the given value
.
Requires:
- No other
NOT_EQUAL
,NOT_IN
,IS_NOT_NULL
, orIS_NOT_NAN
. - That
field
comes first in theorder_by
.
ARRAY_CONTAINS
value: 7
The given field
is an array that contains the given value
.
IN
value: 8
The given field
is equal to at least one value in the given array.
Requires:
- That
value
is a non-emptyArrayValue
with at most 10 values. - No other
IN
orARRAY_CONTAINS_ANY
orNOT_IN
.
ARRAY_CONTAINS_ANY
value: 9
The given field
is an array that contains any of the values in the
given array.
Requires:
- That
value
is a non-emptyArrayValue
with at most 10 values. - No other
IN
orARRAY_CONTAINS_ANY
orNOT_IN
.
NOT_IN
value: 10
The value of the field
is not in the given array.
Requires:
- That
value
is a non-emptyArrayValue
with at most 10 values. - No other
IN
,ARRAY_CONTAINS_ANY
,NOT_IN
,NOT_EQUAL
,IS_NOT_NULL
, orIS_NOT_NAN
. - That
field
comes first in theorder_by
.