ArtemisClient constructor
ArtemisClient(
- String graphQLEndpoint, {
- 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;
}