簡體   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