简体   繁体   English

如何配置vue apollo InMemoryCache

[英]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以不按如下所述添加typeNameaddTypename: 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? 我需要没有此配置文件的手动配置吗?

暂无
暂无

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

相关问题 如何在 Apollo 客户端 InMemoryCache 中获取和设置新缓存的相关对象的引用? - How to get and set a ref for a newly cached related object in Apollo client InMemoryCache? 我正在从 apollo-link-state 迁移到 @apollo/client,如何在不使用 cache.writeData 的情况下将默认数据写入 @apollo/client 的 InMemoryCache? - I am migrating from apollo-link-state to @apollo/client, how do I write default data to InMemoryCache of @apollo/client without using cache.writeData? 如何在Vue组件事件中触发Apollo查询? - How to trigger an Apollo query in a Vue component event? 如何在Apollo / GraphQL中使用Styleguidist进行配置 - How to configure using Styleguidist with Apollo/GraphQL 如何使用Apollo在Vue中实现有效的Graphql查询? - How to implement a working Graphql query in Vue with Apollo? 尝试使用 Apollo Client InMemoryCache Object 从合并助手 function 获取数据,但仅接收 ref 属性 - Trying to get data from merge helper function with Apollo Client InMemoryCache Object, but receive only ref property 多次使用同一个Query时inMemoryCache中的relayStylePagination问题 Apollo3 - relayStylePagination in inMemoryCache problem when using the same Query multiple times Apollo3 向原点发送请求时出错。 Apollo Engine如何配置Apollo Engine的来源? - Error sending request to origin. Apollo Engine how to configure apollo engine origins? Vue CLI 3与阿波罗冲突 - Vue cli 3 conflicts with apollo 如何在较旧的IOS /旧浏览器上使用Graphql Vue Apollo? - How to use Graphql Vue Apollo on older IOS / older browser?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM