1.0.0 • Published 7 years ago
apollo-redux-local v1.0.0
apollo-redux-local
Use Redux to provide local GraphQL resolvers
Installation
npm install --save apollo-redux-localUsage
const store = createStore(
reducer,
{},
applyMiddleware(createApolloMiddleware())
);
const cache = new InMemoryCache();
const client = new ApolloClient({
cache,
link: myApolloLink
});
store.dispatch(registerClient(client));1.0.0
7 years ago