Query Structure
Operators
Comparison Operators
| Operator | Description | Example |
|---|---|---|
= | Equals | status = active |
!= | Not equals | priority != p4 |
> | Greater than | version > 2.0 |
>= | Greater or equal | created_at >= 2024-01-01 |
< | Less than | priority < p2 |
<= | Less or equal | updated_at <= -7d |
IS NULL | Field is null | last_run IS NULL |
IS NOT NULL | Field is not null | folder_id IS NOT NULL |
BETWEEN | Value in range | created_at BETWEEN 2024-01-01 AND 2024-12-31 |
String Pattern Operators
| Operator | Description | Example |
|---|---|---|
~ | Contains (case-insensitive) | title ~ "login" |
!~ | Does not contain | description !~ "deprecated" |
^ | Starts with | identifier ^ "TC-10" |
$ | Ends with | title $ "test" |
List Operators
| Operator | Description | Example |
|---|---|---|
IN | Value in list | priority IN (p1, p2, p3) |
NOT IN | Value not in list | status NOT IN (archived, deleted) |
Array Operators
| Operator | Description | Example |
|---|---|---|
CONTAINS | Array contains value | tags CONTAINS "smoke" |
NOT CONTAINS | Array does not contain | tags NOT CONTAINS "deprecated" |
CONTAINS ANY | Array contains any value | tags CONTAINS ANY (smoke, regression) |
CONTAINS ALL | Array contains all values | tags CONTAINS ALL (smoke, critical) |
Logical Operators
| Operator | Description | Example |
|---|---|---|
AND | Both conditions must be true | status = active AND priority = p1 |
OR | Either condition must be true | priority = p1 OR priority = p2 |
NOT | Negate condition | NOT status = archived |
( ) | Group conditions | (status = active OR status = approved) AND priority = p1 |
Data Types
Strings
Enclose in double or single quotes:Numbers
No quotes needed:Booleans
Dates
- ISO Format
- Relative Dates
- Date Functions
Null Values
Field Names
Field names are case-sensitive:Ordering
- Single Field
- Multiple Fields
ASC (ascending).Pagination
OFFSET requires LIMIT to be specified.Examples by Complexity
- Simple
- Moderate
- Complex
Operator Precedence
From highest to lowest:( )- ParenthesesNOT- Logical NOT=, !=, >, >=, <, <=, ~, ^, $, IN, CONTAINS- Comparison operatorsAND- Logical ANDOR- Logical OR
Common Patterns
Find by Multiple Tags
Find by Multiple Tags
Date Ranges
Date Ranges
Multiple Priorities
Multiple Priorities
Text Search
Text Search
Validation Rules
Error Messages
Common errors and how to fix them:| Error | Cause | Fix |
|---|---|---|
Unknown field: xyz | Field doesn’t exist | Check field reference |
Invalid operator for field type | Wrong operator for field | Use comparison operators for numbers, pattern operators for strings |
Invalid date format | Bad date syntax | Use ISO 8601: 2024-01-15 or relative: -7d |
Expected AND/OR | Missing logical operator | Add AND or OR between conditions |
Unclosed quote | Missing closing quote | Ensure all strings have matching quotes |

