nuxt3-apollo-module icon indicating copy to clipboard operation
nuxt3-apollo-module copied to clipboard

feat: add cache configuration

Open rejifald opened this issue 3 years ago • 0 comments

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
                }
            },
        },
    },
...

rejifald avatar Sep 04 '22 10:09 rejifald