Skip to content

feat: add cache configuration#8

Open
rejifald wants to merge 1 commit into
newbeea:masterfrom
rejifald:feature/cache-configuration
Open

feat: add cache configuration#8
rejifald wants to merge 1 commit into
newbeea:masterfrom
rejifald:feature/cache-configuration

Conversation

@rejifald

@rejifald rejifald commented Sep 4, 2022

Copy link
Copy Markdown

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

No way to pass options to InMemoryCache constructor

1 participant