Skip to main content

Overview

Several datasources endpoints — including Query a datasource — accept a query 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.
The decoded 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 under queriableFields 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 } }).