fetchQuery
Fetch data from Airstack by calling queries to the Airstack API. If you need any pagination, use fetchQueryWithPagination instead.
Pre-requisites
Calling
init
function
Example
Function Signature
Params
Param
Type
Default Value
Description
query
string
variables
Record<string, any>
GraphQL query variables
Responses
Param
Type
Default Value
Description
data
any?
Response data from GraphQL query
if API call succeeds.
error
any?
Error logs from GraphQL query if API call failed.
Last updated