ArtemisClient class
Used to execute a GraphQL query or mutation and return its typed response.
A Link
is used as the network interface.
Constructors
- ArtemisClient(String graphQLEndpoint, {Client? httpClient})
-
Instantiate an ArtemisClient.
factory
- ArtemisClient.fromLink(Link _link)
-
Create an ArtemisClient from
Link
.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
dispose(
) → void -
Close the inline
http.Client
. -
execute<
T, U extends JsonSerializable> (GraphQLQuery< T, U> query, {Context context = const Context()}) → Future<GraphQLResponse< T> > - Executes a GraphQLQuery, returning a typed response.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
stream<
T, U extends JsonSerializable> (GraphQLQuery< T, U> query, {Context context = const Context()}) → Stream<GraphQLResponse< T> > - Streams a GraphQLQuery, returning a typed response stream.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited