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