apollo-redux-local

Use Redux to provide local GraphQL resolvers

Usage no npm install needed!

<script type="module">
  import apolloReduxLocal from 'https://cdn.skypack.dev/apollo-redux-local';
</script>

README

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