mutate<TParsed> method

Future<QueryResult<TParsed>> mutate<TParsed>(
  1. MutationOptions<TParsed> options
)
inherited

This resolves a single mutation according to the MutationOptions specified and returns a Future which resolves with the QueryResult or throws an Exception.

Implementation

Future<QueryResult<TParsed>> mutate<TParsed>(
    MutationOptions<TParsed> options) async {
  final policies = defaultPolicies.mutate.withOverrides(options.policies);
  return await queryManager.mutate(options.copyWithPolicies(policies));
}