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