HasuraConnect class

Constructors

HasuraConnect(String url, {int? reconnectionAttempt, List<Interceptor>? interceptors, Map<String, String>? headers, Client httpClientFactory()?})

Properties

controller StreamController
final
hashCode int
The hash code for this object.
no setterinherited
headers Map<String, String>?
final
isConnected bool
no setter
reconnectionAttempt int?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
snapmap Map<String, Snapshot>
final
url String
final

Methods

disconnect() Future<void>
Disconect from Hasura
dispose() Future
executeMutation(Query query) Future
Execute a Mutation from a Query
executeQuery(Query query) Future
Execute a Query from a Query
executeSubscription(Query query) Future<Snapshot>
Execute a Subscription from a Query
mutation(String document, {Map<String, dynamic>? variables, bool tryAgain = true, String? key, Map<String, String>? headers}) Future
Execute a Mutation from a Document
normalizeStreamValue(Map data) Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
query(String document, {String? key, Map<String, dynamic>? variables, Map<String, String>? headers}) Future
Execute a Query from a Document
querySubscription(Query query) String
rootStreamListener(dynamic data) → void
sendToWebSocketServer(String input) → void
subscription(String document, {String? key, Map<String, dynamic>? variables, Map<String, String>? headers}) Future<Snapshot>
Execute a Subscription from a Document
toString() String
A string representation of this object.
inherited

Operators

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