Name / Type |
Description |
Operation options |
|
|
An object containing all of the GraphQL variables your query requires to execute. Each key in the object corresponds to a variable name, and that key's value corresponds to the variable value. |
|
Specifies how the query handles a response that returns both GraphQL errors and partial results. For details, see GraphQL error policies. The default value is |
Networking options |
|
|
Determines whether the component should re-suspend when refetching data. Set to
The default value is |
|
If you're using Apollo Link, this object is the initial value of the |
|
The instance of By default, the instance that's passed down via context is used, but you can provide a different instance here. |
|
A unique identifier for the query. Each item in the array must be a stable identifier to prevent infinite fetches. This is useful when using the same query and variables combination in more than one component, otherwise the components may clobber each other. This can also be used to force the query to re-evaluate fresh. |
Caching options |
|
|
Specifies how the query interacts with the Apollo Client cache during execution (for example, whether it checks the cache for results before sending a request to the server). For details, see Setting a fetch
policy. This hook only supports
the The default value is |
|
If The default value is |