Overview
Several datasources endpoints — including Query a datasource — accept aquery field that filters the returned rows. The value is a JSON-encoded string of a filter object: it is serialised with JSON.stringify before being sent.
query above reads:
Structure
A query is a tree built from two logical groups and leaf conditions.
Each array element is either another group or a single condition — mix them to build nested logic.
Operators
The operators allowed for a field depend on its type. A field’s type and allowed operators are listed underqueriableFields when you read the Datasource (GET /datasources/{id}).
String
Number
Numeric equality uses
$neq (numeric-equal) and $nne (numeric-not-equal). $eq / $ne are reserved for string and boolean fields.Boolean
Datetime
Values may be
null to match rows whose field is null (e.g. { "category": { "$eq": null } }).Related
- Query a datasource — the endpoint that consumes this filter.
- Real-time API Datasource (proxy mode) — building and testing a proxy Datasource.
- Datasource Data Node — the same filters applied inside a Workflow.