Filter Object
This page specifies all the fields available for filtering in the Alerts API
AlertBoolExpression
This object represents where
argument on the alerts
node.
Field | Type | Description |
id | Allows filtering | |
dataset | Allows filtering Alerts by | |
class | Allows filtering Alerts by | |
company | Allows filtering Alerts by | |
resource | Allows filtering Alerts by | |
polarity | Allows filtering Alerts by the value of | |
publishedAt | Allows chronological filtering of Alerts |
IDComparisonExpression
Field | Type | Description |
eq | ID | When specified, API will return Alert with this particular id |
in | [ID!] | Allows fetching a set of Alerts by a given array of identifiers |
StringComparisonExpression
Field | Type | Description |
eq | String | Will match values exactly equal to the given one |
in | [String!] | Will match values from the given array, using the same comparison as |
nin | [String!] | Inversion of the |
IntComparisonExpression
Field | Type | Description |
eq | Int | Will match values exactly equal to the given one |
neq | Int | Will match values that are strictly not equal to the given one |
gt | Int | Will match values that are greater than the given one |
gte | Int | Will match values that are greater or equal to the given one |
lt | Int | Will match values that are less than the given value |
lte | Int | Will match values that are less than or equal to the given one |
in | [Int!] | Will match values from the given array, using the same comparison as |
nin | [Int!] | Inversion of the |
isNull | Boolean | Will match values testing their equality to |
AlertClassComparisonExpression
Field | Type | Description |
code | StringComparisonExpression | Will match Alerts where the given value matches Alert's class code |
AlertCompanyComparisonExpression
Field | Type | Description |
id | IDComparisonExpression | Will match Alerts where Company ID matches the given expression |
AlertResourceComparisonExpression
Field | Type | Description |
id | StringComparisonExpression | Will match Alerts where Resource ID matches the given expression |
type | StringComparisonExpression | Will match Alerts where Resource Type matches the given expression |
DateComparisonExpression
All the values must be specified using ISO 8601 date or date with time formats.
Field | Type | Description |
eq | String | Will match values with a date matching the given value exactly. Please, be aware that "2021-01-01" is equal to "2021-01-01T00:00:00" |
neq | String | Inversion of the |
gt | String | Will match values greater than given one |
gte | String | Will match values greater than or equal to the given one |
lt | String | Will match values less than given one |
lte | String | Will match values less than or equal to the given one |
in | [String!] | Will match values from the given array, using the same comparison as |
nin | [String!] | Inversion of the |
Last updated