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: GraphQLError, variables: V) => void | Callback when mutation fails |
onSuccess? | (data: T, variables: V) => void | Callback when mutation succeeds |
operationName? | string | Operation name when the document contains multiple operations |
requestOptions? | GraphQLRequestOptions | Additional request options |