How to use the apollo-cache-inmemory/lib.InMemoryCache function in apollo-cache-inmemory

To help you get started, we’ve selected a few apollo-cache-inmemory examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github zhenyulin / ultimate-hot-boilerplate / client / apollo.js View on Github external
export default function setupApollo() {
  return new ApolloClient({
    link: new HttpLink({ uri: '/graphql' }),
    cache: new InMemoryCache(),