GraphQLClient constructor

GraphQLClient(
  1. {@required Link link,
  2. @required Cache cache,
  3. DefaultPolicies defaultPolicies}
)

Constructs a GraphQLClient given a Link and a Cache.

Implementation

GraphQLClient({
  @required this.link,
  @required this.cache,
  this.defaultPolicies,
}) {
  defaultPolicies ??= DefaultPolicies();
  queryManager = QueryManager(
    link: link,
    cache: cache,
  );
}