request method
Event Send request query
Implementation
Future<T> request() async {
final options = MutationOptions(document: getDocument(), variables: await getVariables());
final client = await GraphqlConfig.getFromInstance(this);
final result = await client.mutate(options);
try {
final response = GraphqlResponseDecoder<T>(instance: this, result: result);
return await response.decode(onSuccess);
} catch (e) {
rethrow;
}
}