query<T> method

GraphQLOperation<T> query<T>({
  1. required GraphQLRequest<T> request,
})

Sends a GraphQL query request and returns the response in a cancelable GraphQLOperation.

See https://docs.amplify.aws/lib/graphqlapi/query-data/q/platform/flutter/ for more information.

Implementation

GraphQLOperation<T> query<T>({required GraphQLRequest<T> request}) =>
    identifyCall(
      ApiCategoryMethod.query,
      () => defaultPlugin.query(request: request),
    );