Helpers: createApolloClient
Exports
import { createApolloClient } from '@apollo-elements/lib/create-apollo-client';
createApolloClient
Parameters
options
Options
Property | Type | Description |
---|---|---|
uri | string | URI to the client's GraphQL endpoint. |
typePolicies | TypePolicies | The client's type policies. |
validateVariables | boolean | Whether to prevent operations that do not have all their non-nullable variables defined. |
Limited configuration options for the client.
Returns
ApolloClient<NormalizedCacheObject> & { cache: InMemoryCache }
A simple Apollo client instance.