request method
Execute query
Implementation
Future<T> request() async {
QueryOptions<Object?> options = await this.options;
GraphQLClient client = await PipenGraphqlClient.getFromInstance(this);
QueryResult result = await client.query(options);
try {
PipenGraphqlResponse response = PipenGraphqlResponse<T>(instance: this, result: result);
return await response.process(onSuccess);
} catch (e) {
rethrow;
}
}