hooks library

Classes

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

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>

Typedefs

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