如何配置vue apollo InMemoryCache

How to configure vue apollo InMemoryCache

我正在使用 vue-apollo 并使用 apollo.config.js 文件对其进行配置,如下所述:https://vue-apollo.netlify.com/guide/installation.html#ide-integration(我使用 VSCode)。

现在我需要将 InMemoryCache 配置为不添加 typeName (addTypename: false),如下所述:https://www.apollographql.com/docs/react/advanced/caching/#configuration

我如何在 apollo.config.js 中执行此操作?这甚至可能吗?没有这个配置文件我需要手动配置吗?

在这里找到答案:https://www.apollographql.com/docs/references/apollo-config/#clientaddtypename

client: {
    addTypename: false,