metadata fields (plus id and text). A filter is either a single condition or a logical combination of conditions, and the whole structure is typed against your metadata.
Conditions
A single condition names afield, an operator op, and (for most operators) a value. The field is one of your metadata keys, or id / text — names resolve to the underlying columns automatically.
Operators
op | value | Meaning |
|---|---|---|
= | string | number | Equals. |
> >= < <= | string | number | Comparison. |
IN | (string | number)[] | Value is in the list. |
LIKE | string | SQL LIKE pattern (% wildcard). |
NOT LIKE | string | Negated LIKE pattern. |
IS NULL / IS NOT NULL | — | Field is (not) null. |
IS TRUE / IS NOT TRUE | — | Boolean truthiness. |
IS FALSE / IS NOT FALSE | — | Boolean falsiness. |
IS … operators take no value.
Combining conditions
Wrap conditions inAND, OR, or NOT to build compound filters. These nest freely, so you can express any boolean logic.
AND / OR
NOT
NOT negates a single nested filter (which may itself be a condition or a group).
Nesting
Types
T["metadata"], an unknown field name or a value of the wrong type is a compile-time error.