ArtemisClient constructor

ArtemisClient(
  1. String graphQLEndpoint, {
  2. Client? httpClient,
})

Instantiate an ArtemisClient.

DedupeLink and HttpLink are included. To use different Link create an ArtemisClient with ArtemisClient.fromLink.

Implementation

factory ArtemisClient(
  String graphQLEndpoint, {
  http.Client? httpClient,
}) {
  final httpLink = HttpLink(
    graphQLEndpoint,
    httpClient: httpClient,
  );
  return ArtemisClient.fromLink(
    Link.from([
      DedupeLink(),
      httpLink,
    ]),
  ).._httpLink = httpLink;
}