繁体   English   中英

如何配置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以不按如下所述添加typeNameaddTypename: false ): https : addTypename: false

我该如何在apollo.config.js中执行此操作? 那里可能吗? 我需要没有此配置文件的手动配置吗?

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

client: {
    addTypename: false,

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM