hasura_connect library

Classes

HasuraConnect
Base Class HasuraConnect
Interceptor
The Interceptor class is an abstract class acting as the interface.
InterceptorBase
The InterceptorBase class is an abstract class that extends Interceptor class, acting as the interface.
LogInterceptor
The class LogInterceptor is responsible for creating a log for onConnected, onDisconnected and onTryAgain methods
Query
Class Query Creates a query object and converts it into a json
Request
Class Request a request object, overrides the == operator and the hashcode using the url, query and type hashcode
Response
Class Response overrides the operator ==
Snapshot<T>
Class Snapshot extends Stream and implements EventSink. The class implements a new method called changeVariables
StartWithStreamTransformer<T>
Class StartWithStreamTransformer extends StreamTransformerBase implements bind in accordance with is necessary
WrapperStartWith<T>
Class WrapperStartWith responsible for acting as a wrapper

Enums

RequestType
RequestType enum with the variables:

Exceptions / Errors

ConnectionError
Class ConnectionError Responsible for hasura ConnectionError errors Overrides toString as a DatasourceError error with the message received
DatasourceError
Class DatasourceError Responsible for hasura Datasource errors Overrides toString as a DatasourceError error with the message received
HasuraError
Abstract class HasuraError implements Exception interface for Hasura related errors.
HasuraRequestError
Class HasuraRequestError Responsible for hasura request errors
InterceptorError
Class InterceptorError Responsible for hasura InterceptorError errors Overrides toString as a DatasourceError error with the message received
InvalidRequestError
Class InvalidRequestError Responsible for hasura InvalidRequestError errors Overrides toString as a DatasourceError error with the message received