ApiService constructor

ApiService(
  1. String endpoint
)

Implementation

ApiService(
  this.endpoint,
) : _client = GraphQLClient(
        link: HttpLink('$endpoint/api'),
        cache: GraphQLCache(),
        queryRequestTimeout: const Duration(seconds: 10),
        defaultPolicies: DefaultPolicies(
          query: Policies(
            fetch: FetchPolicy.noCache,
            error: ErrorPolicy.all,
          ),
        ),
      );