Function: createMutation

createMutation<TMutation>(mutation): [(config: Omit<MutationConfig<TMutation>, "mutation">) => Disposable, Accessor<boolean>]

Type parameters

Name Type
TMutation extends MutationParameters

Parameters

Name Type
mutation GraphQLTaggedNode

Returns

[(config: Omit<MutationConfig<TMutation>, "mutation">) => Disposable, Accessor<boolean>]