AQL Cheatsheet - Operators
Text Operators
Description
A text value, represented as a string of characters. The "text" type can include any characters, including letters, numbers, symbols, and whitespace.
Tags
Operator, Condition
Operators
==
; is
Equal to
products.name == 'Dandelion'
products.name is 'Dandelion'
!=
; is not
Not equal to
products.name != 'Rock'
products.name is not 'Rock'
like
Match the pattern specified
products.name like '%Dan'
not like
Not match the pattern specified
products.name not like '%Dan'
ilike
Match the pattern specified, case insensitive
products.name ilike '%dan'
not ilike
Match the pattern specified, case insensitive
products.name not ilike '%dan'
is null
Include if the value is null
products.name is null
is not null
Include if the value is not null
products.name is not null
Learn more
List Operators
Description
Check if the field value is in the list.
Tags
Operator, Condition
Operators
in
Include if the value is in the list
products.name in ['Dandelion', 'Rock']
not in
Include if the value is not in the list
products.name not in ['Dandelion', 'Rock']
Learn more
Truefalse Operators
Description
A boolean value, represented as either "true" or "false". This is commonly used to represent logical values. For example, it can be used to represent the result of a comparison, the status of a switch, or the answer to a yes/no question.
Tags
Operator, Condition
Operators
is
Equal to
orders.is_paid is true
is not
Not equal to
orders.is_paid is not true
is null
Include if null
orders.is_paid is null
is not null
Include if not null
orders.is_paid is not null
Learn more
Number Operators
Description
A numeric value, represented as an numeric, integer, float, or double. It can be used as dimension or measure type. The number type can include positive and negative values, as well as decimal points.
Tags
Operator, Condition
Operators
==
; is
Equal to
order_items.discount == 0.5
order_items.discount is 0.5
!=
; is not
Not equal to
order_items.discount != 1
order_items.discount is not 1
>
Greater than
order_items.discount > 0.5
>=
Greater than or equal to
order_items.discount >= 0.5
<
Less than
order_items.discount < 0.5
<=
Less than or equal to
order_items.discount <= 0.5
is null
Include if null
order_items.discount is null
is not null
Include if not null
order_items.discount is not null
+
Add two numeric values
products.cost + products.profit
-
Subtract two numeric values
products.revenue - products.cost
*
Multiply two numeric values
orders.quantity * products.price
/
Divide two numeric values
products.profit / products.cost