useQuery
Fetch data from Airstack by calling queries to the Airstack API. If you need any pagination, use useQueryWithPagination instead.
Pre-requisites
Calling
init
function
Example
Function Signature
Params
Param
Type
Default Value
Description
query
string
-
variables
null
GraphQL query variables
configAndCallbacks
null
Additional configurations and callbacks.
Responses
Param
Type
Default Value
Description
response
-
Response from the hook that will return data, error logs, and loading state.
Last updated