Operators
Comparison, logical, arithmetic, and bitwise operators for building powerful query conditions.
All Operators
Comparison
Logical
Array Operators
NEWQuantifiers allow you to check if conditions apply to elements within an array. These are essential for querying nested data.
ANY
At least one match
FILTER ANY item IN doc.items
SATISFIES item.price > 100
True if one or more elements satisfy the condition.
Syntax Breakdown
QUANTIFIER
ANY / ALL / NONE
VARIABLE
Loop variable
ARRAY
IN doc.items
CONDITION
SATISFIES expr
Bind Variables
SECURITY ESSENTIALPrevent Injection Attacks
Never concatenate user input directly into query strings. Always use bind variables (@variable) to safely substitute values.
Query
FOR u IN users
FILTER u.name == @name
AND u.age >= @minAge
RETURN u
Bind Vars
{
"name": "Alice",
"minAge": 25
}
Dynamic Field Access
Use bracket notation with bind variables for dynamic field names.
FILTER doc[@fieldName] == @value