[英]How to configure vue apollo InMemoryCache
i'm using vue-apollo and have configured it using apollo.config.js file like described here: https://vue-apollo.netlify.com/guide/installation.html#ide-integration (i use VSCode). 我正在使用vue-apollo,并已使用apollo.config.js文件对其进行了配置,如下所述: https ://vue-apollo.netlify.com/guide/installation.html#ide-integration(我使用VSCode)。
Now i need to configure the InMemoryCache
to not add the typeName
( addTypename: false
) as described here: https://www.apollographql.com/docs/react/advanced/caching/#configuration 现在,我需要配置InMemoryCache
以不按如下所述添加typeName
( addTypename: false
): https : addTypename: false
How can i do this in apollo.config.js? 我该如何在apollo.config.js中执行此操作? Is this even possible there? 那里可能吗? Do i need to config it manually without this config file? 我需要没有此配置文件的手动配置吗?
found the answer here: https://www.apollographql.com/docs/references/apollo-config/#clientaddtypename 在这里找到答案: https : //www.apollographql.com/docs/references/apollo-config/#clientaddtypename
client: {
addTypename: false,
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.