apollo
#
Installation#
API#
useEnhancedQuerySame API as Apollo useQuery except:
- It accepts a third parameter for setting the auth/unauth endpoints for you. Defaults to auth endpoint.
- It returns
initialLoading
,refetching
, andfetchingMore
(pass innotifyOnNetworkStatusChange: true
)
See Apollo useQuery docs.
#
useEnhancedLazyQuerySame as Apollo useLazyQuery except it accepted a third parameter for setting the auth/unauth endpoints for you. Defaults to auth endpoint.
#
useEnhancedMutationSame as Apollo useMutation except it accepted a third parameter for setting the auth/unauth endpoints for you. Defaults to auth endpoint.
#
useEnumValuesFetch key and descriptions for an enum from the gql server. Providing a type for the enum will give correct data on the response type.
#
initClientConfigure Apollo client.
#
getQueryNameGet the query or mutation name.
#
getQueryBodyGet the query or mutation body.