adeptgraphql
library
Typedefs
-
DataTypeQueryResponseConverter<T>
= T Function(QueryResult<Object?>? queryResult)
-
-
LoadFromGraphQLAPI<DataType, ErrorType>
= Future<QueryResponse<DataType, ErrorType>> Function()
-
A generic class that can provide a resource backed by both the local database and the network.
-
OnGraphQLAPIErrorManagement<DataType, ErrorType>
= Future<Resource<DataType>> Function(Resource<DataType>? resource, {QueryResponse<DataType, ErrorType>? response})
-
-
OnLoadedFromGraphQLAPIFailed<DataType, ErrorType>
= Future<Resource<DataType>> Function({dynamic exception, QueryResponse<DataType, ErrorType>? response})
-
-
OnLoadedFromGraphQLAPISuccess<DataType, ErrorType>
= Future<Resource<DataType>> Function({Resource<DataType>? resource, QueryResponse<DataType, ErrorType>? response})
-
-
OnSubscriptionDataError<DataType, ErrorType>
= Future<SubscriptionResource<DataType>> Function({dynamic exception, QueryResponse<DataType, ErrorType>? response})
-
-
OnSubscriptionDataSuccess<DataType, ErrorType>
= Future<SubscriptionResource<DataType>> Function({SubscriptionResource<DataType>? resource, QueryResponse<DataType, ErrorType>? response})
-
-
OnSubscriptionErrorManagement<DataType, ErrorType>
= Future<SubscriptionResource<DataType>> Function(SubscriptionResource<DataType>? resource, {QueryResponse<DataType, ErrorType>? response})
-
-
OnSubscriptionFailed<DataType>
= Future<SubscriptionResource<DataType>> Function(dynamic exception)
-
-
SubscriptionCall
= Future<Stream<QueryResult<Object?>>> Function()
-
A generic class that can provide a subscription resource