Predicate operator reference
Use comparisons, date ranges, and nested groups with explicit behavior for missing fields and empty arrays.
Supported operators #
| Operator | Meaning | Arguments |
|---|---|---|
| eq / ne | Equal / not equal | value |
| gt / gte | Greater / greater or equal | value |
| lt / lte | Less / less or equal | value |
| in | Value belongs to a list | value: array |
| exists | Field is present | No value required |
| is_null | Present field contains null | No value required |
| between | Calendar date in inclusive range | from and to |
Use the lowercase operator name, for example gte, not the symbol >=.
{
"path": "country",
"op": "in",
"value": [
"DE",
"FR",
"NL"
]
}in tests list membership, not a substring. exists is true for a present field containing null or an empty string. is_null requires the field to exist.
Date ranges #
{
"path": "date",
"op": "between",
"from": "2026-11-01",
"to": "2026-11-30"
}Both boundaries are included. between is for calendar dates. Use gte and lte together for a numeric range.
Combine rules #
all requires every child condition to match one item. any requires at least one. not inverts one condition.
{
"all": [
{
"path": "amount",
"op": "gte",
"value": 100
},
{
"path": "amount",
"op": "lte",
"value": 1000
}
]
}{
"any": [
{
"path": "status",
"op": "eq",
"value": "approved"
},
{
"path": "status",
"op": "eq",
"value": "manual_review"
}
]
}{
"not": {
"path": "country",
"op": "in",
"value": [
"DE",
"FR"
]
}
}Groups may nest. all and any require non-empty arrays. Use one construct per object: a comparison, all, any, or not. The All block checks every array item; an all group checks multiple conditions for one item.
Missing fields are errors #
For optional age fields, use two Filter blocks in sequence:
{"path":"age","op":"exists"}
// Configure the second Filter separately:
{"path":"age","op":"gte","value":18}Types and empty arrays #
- Ordered comparisons require numeric values; numeric strings are also accepted. Numeric eq may consider 18 and "18" equal.
- Non-numeric eq and ne use strict, case-sensitive comparison.
- in is strict: the number 18 does not match the string "18".
- Use value: true for a boolean, not value: "true".
| Block | Empty array result |
|---|---|
| Filter | [] |
| Any | false |
| All | true |
| Count Where | 0 |
If you require a non-empty array with every item matching, check non-emptiness separately.