UseGraphQLMutationOptions
Options for useGraphQLMutation hook
Type Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
T |
V |
Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
invalidateQueries? |
string[] |
Query keys to invalidate on success |
onError? |
(error, variables) => void |
Callback when mutation fails |
onSuccess? |
(data, variables) => void |
Callback when mutation succeeds |
operationName? |
string |
Operation name when the document contains multiple operations |
requestOptions? |
GraphQLRequestOptions |
Additional request options |