ApiService constructor

ApiService(
  1. String endpoint
)

Implementation

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