Answers for "Apollo Client disable inMemoryCache"

0

Apollo Client disable inMemoryCache

const defaultOptions: {
      watchQuery: {
        fetchPolicy: 'no-cache',
        errorPolicy: 'ignore',
      },
      query: {
        fetchPolicy: 'no-cache',
        errorPolicy: 'all',
      },
    }

const client = new ApolloClient({
    link: concat(authMiddleware, httpLink),
    cache: new InMemoryCache(),
    defaultOptions: defaultOptions,

});
Posted by: Guest on August-09-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language