nuxt3-apollo-module
nuxt3-apollo-module copied to clipboard
feat: add cache configuration
Resolve #7
Add possibility to configure Apollo cache instance. For example:
...
apollo: {
clientConfigs: {
default: {
// see https://www.apollographql.com/docs/react/api/core/ApolloClient/#ApolloClient.constructor
uri: "http://localhost:3000/api",
cache: {
// see https://www.apollographql.com/docs/react/caching/cache-configuration/#possibletypes
possibleTypes
}
},
},
},
...