use_mutation library

Functions

useMutation({MutationOptions mutationOptions, GraphQLClient client, HookOptions hookOptions = const HookOptions(true)}) MutationOperationResult<Map<String, dynamic>, _MutationFunction>
This hook creates a mutation function that is bound to the state being held by the hook (data, loading, error); The function is also a Future that returns a Map<String, dynamic> and throws, allowing imperative usage.