1.0.0 • Published 6 years ago

apollo-redux-local v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

apollo-redux-local

Use Redux to provide local GraphQL resolvers

CircleCI GitHub repository semantic-release Maintenance status as of 2019

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));
1.0.0

6 years ago