Links
📏

Working with GraphQL

Learn all the available logical and comparison operators for filtering out the desired API results.

Logical Operators

In GraphQL, logical operators like _and , _nor, and _or are used to combine multiple filtering conditions, allowing you to create more complex queries. These logical operators can only be used between unique filter inputs only. In order to add operators to one specific filter check the information below. Here's a brief explanation of each:
  • _and: AND - Combines multiple filtering conditions, and only returns the data that meets all the specified conditions. Note: the relationship between multiple selected filters is always AND by default.
  • _nor: NOR (Not OR) - Combines multiple filtering conditions, and only returns the data that does not meet any of the specified conditions.
  • _or: OR - Combines multiple filtering conditions, and returns the data that meets at least one of the specified conditions.

Comparison Operators

In addition to the filtering conditions, Airstack GraphQL also has the following comparison operators which are used to filter data in queries based on specified conditions. They are shorthand for various comparison operators:
Operators
Represents
Description
_eq
Equals
Fetch data that has equal value to the provided input on the specified filter input.
_gt
Greater Than
Fetch data that has value greater than the provided input on the specified filter input.
_gte
Greater Than or Equal
Fetch data that has value greater than or equal to the provided input on the specified filter input.
_lt
Less Than
Fetch data that has value less than the provided input on the specified filter input.
_lte
Less Than Equal
Fetch data that has value less than the provided input on the specified filter input.
_ne
Not Equal
Fetch data that does not have equal value to the provided input on the specified filter input.
_in
In
Fetch data that has value matched to one of the element in the provided array input on the specified filter input. Currently, _in operator has a maximum limit of 200 addresses as responses are only limited to 200.
_nin
Not In
Fetch data that does not have value matched to one of the element in the provided array input on the specified filter input. Currently, _in operator has a maximum limit of 200 addresses as responses are only limited to 200.
_regex
Regex Search
Fetch data that has value matched to provided regex pattern input on the specified filter input. Currently only available in PoapEvents and Socials API.
_regex_in
Multiple Regex Search
Fetch data that has value matched to one of the provided regex pattern in the array input on the specified filter input. Currently only available in PoapEvents and Socials API. Currently, _in operator has a maximum limit of 200 addresses as responses are only limited to 200.