You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allow to pass options into cache constructor.
For example in your nuxt.config.js
{apollo: {clientConfigs: {default: {uri: "http://localhost:3000/api",// These options will be passed into InMemoryCache constructorcache: {
possibleTypes
}},}
The text was updated successfully, but these errors were encountered:
Problem
There is no way to neither pass cache options nor pass custom cache.
Scenario
In my particular scenario I need to pass possibleTypes to cache constructor.
Proposed solutions
Where
apollo.client.js
file exports a function that returns client options see https://www.apollographql.com/docs/react/api/core/ApolloClient/#the-apolloclient-constructor.For example:
For example in your nuxt.config.js
The text was updated successfully, but these errors were encountered: