QueryFilterOperator
Enumeration of the comparison operators supported in query filters.
Declaration
string QueryFilterOperatorPossible Values
EQUALSExact match.
NOT_EQUALSMatches records where the field value is not equal to the specified value.
INMatches any of the specified values.
NOT_INMatches records where the field value is not in the specified set.
CONTAINS_ANYMatches records where the field contains any of the specified values.
NOT_CONTAINS_ANYMatches records where the field does not contain any of the specified values.
CONTAINS_ALLMatches records where the field contains all of the specified values.
NOT_CONTAINS_ALLMatches records where the field does not contain all of the specified values.
LIKEPattern match, case-sensitive. Use
%as a wildcard to match any sequence of characters. SetignoreCasetotrueon theQueryFilterfor a case-insensitive pattern match.NOT_LIKEMatches records where the field does not match the pattern. Use
%as a wildcard to match any sequence of characters.STARTS_WITHMatches records where the field value starts with the specified string.
ENDS_WITHMatches records where the field value ends with the specified string.
GREATER_THANMatches records where the field value is greater than the specified value.
GREATER_THAN_OR_EQUAL_TOMatches records where the field value is greater than or equal to the specified value.
LESS_THANMatches records where the field value is less than the specified value.
LESS_THAN_OR_EQUAL_TOMatches records where the field value is less than or equal to the specified value.
BETWEENMatches values within an inclusive range. Requires exactly two values, ordered as
[minimum, maximum].IS_NULLMatches records where the field has no value.
IS_NOT_NULLMatches records where the field has a value.
Discussion
The QueryFilterOperator enumerates the comparison operators available in QueryFilter.operator. Not every field or endpoint supports all operators. Refer to each entity’s dictionary keys for per-field operator support.
Endpoints that accept a QueryFilter or QueryRequest: