Query Syntax
Cheatsheet for filtering the data
Basic Syntax
A filter expression consists of one or more conditions that can be combined using logical operators. Each condition typically follows this pattern:
Supported Operators
=
, ==
Equals
name = "John"
!=
, <>
Not equals
status != "inactive"
>
Greater than
age > 30
>=
Greater than or equal to
price >= 100
<
Less than
quantity < 5
<=
Less than or equal to
temperature <= 32
in
Value is in a list
status in ["active", "pending"]
like
Pattern matching
name like "%Smith%"
is null
Value is null
address is null
is not null
Value is not null
email is not null
Data Types
The syntax supports the following data types:
Strings: Enclosed in double quotes (
"value"
) or single quotes ('value'
)Numbers: Integers or decimals (
42
,3.14
)Booleans:
true
orfalse
Lists: Enclosed in square brackets, with comma-separated values (
[1, 2, 3]
,["active", "pending"]
)
Logical Operators
Conditions can be combined using logical operators:
AND:
condition1 and condition2
OR:
condition1 or condition2
Parentheses can be used to group conditions and control precedence:
Accessing Nested Properties
For nested data structures, use dot notation to access properties:
Examples
Basic Comparisons
Combining Conditions
Working with Lists
Pattern Matching
Null Checks
Nested Properties
Complex Filters
Reserved Keywords
The following keywords are reserved and should not be used as field names:
and
or
in
like
is
null
not
true
false
Best Practices
Use parentheses to make complex expressions clearer
Be consistent with string quotes (prefer double quotes)
Use whitespace to improve readability
For complex filters, break expressions into multiple lines
Last updated