flutter_graphql_hooks library

Classes

GraphQLClientState
GraphQLHooksProvider
UseMutationReturn<T, U extends JsonSerializable>
UseQueryReturn<T, U extends JsonSerializable>

Properties

graphQLClientProvider StateNotifierProvider<GraphQLClientState>
final

Functions

toTyped<T>(QueryResult r, GraphQLQuery<T, dynamic> query) GraphQLResponse<T>
useMutation<T, U extends JsonSerializable>(GraphQLQuery<T, U> mutation, {Duration pollInterval, GraphQLClient graphQLClient, OnMutationUpdate update, StateNotifierProvider<GraphQLClientState> provider}) UseMutationReturn<T, U>
useQuery<T, U extends JsonSerializable>(GraphQLQuery<T, U> query, {Duration pollInterval, GraphQLClient graphQLClient, StateNotifierProvider<GraphQLClientState> provider}) UseQueryReturn<T, U>
uuidFromObject(Object object) String

Typedefs

FetchMoreFunc = Future<QueryResult> Function(FetchMoreOptions)
RefetchFunc = Future<QueryResult> Function()
RunMutation<U> = MultiSourceResult Function(U variables, {Object optimisticResult})