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