GQLClient class

Constructors

GQLClient({@required String url, Map<String, String> headers})

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
headers Map<String, String>
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

mutation({String mutation, Map<String, dynamic> variables, Map<String, String> headers}) Future<GQLResponse>
GQL Mutation using the Dart Http package url is your gql endpoint. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
query({String query, Map<String, dynamic> variables, Map<String, String> headers}) Future<GQLResponse>
GQL Query using the Dart Http package url is your gql endpoint. [...]
setHeaders(Map<String, String> headers) → void
Method to set the headers used in the futures queries/mutations headers Headers that you want to set [...]
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited