FetchQuery
The return type of the fetchQuery function comprises of the data, error logs, loading indicator, and pagination object.
Example
Type Signature
Fields
Param | Type | Default Value | Description |
---|---|---|---|
|
|
| Response data from GraphQL |
|
|
| Error logs from GraphQL query if API call failed. |
|
|
| Indicate if there is any next page. |
|
|
| Indicate if there is any previous page. |
|
| - | Function to get data in the next page. |
|
| - | Function to get data in the previous page. |
Last updated
Was this helpful?