📏Working with GraphQL

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

Comparison Operators

Airstack GraphQL has the following comparison operators which are used to filter data in queries based on specified conditions. They are shorthand for various comparison operators:

OperatorsRepresentsDescription

_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.

Last updated

Was this helpful?