GithubClient class

Constructors

GithubClient({required String token, String endPoint = "https://api.github.com/graphql", GraphQLCache? cache})

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 MutationOptions<Object?> mutation}) Future<Map<String, dynamic>>
Function that give you the possibility to run a mutation get the response in the Object deserialized from JSON.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
query({required QueryOptions<Object?> query}) Future<Map<String, dynamic>>
Function that give you the possibility to run a query and get the response decoded directly in the Object from JSON.
rawMutation({required String mutationDefinition, Map<String, dynamic> variable = const {}, String? mutationName}) Future<Map<String, dynamic>>
rawQuery({required String queryDefinition, Map<String, dynamic> variable = const {}, String? queryName}) Future<Map<String, dynamic>>
Make a raw query by passing the query definition inside a query
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited