GraphQLClient class
A GraphQL client that can be used to query and mutate data.
Constructors
-
GraphQLClient.new(String baseEndpoint, Map<
String, String> headers, IntegrationId integrationId)
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
-
mutate(
{required String query}) → Future< Map< String, dynamic> ?> - Executes a GraphQL mutation and returns a promise with the result.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
query(
{required String operationName, required String query, Map< String, dynamic> variables = const {}}) → Future<Map< String, dynamic> ?> - Executes a GraphQL query and returns a promise with the result.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited