【问题标题】:Apollo GraphQL, is there a way to manipulate the data that is being written to the cache during querying?Apollo GraphQL,有没有办法在查询期间操作正在写入缓存的数据?
【发布时间】:2019-12-29 12:22:15
【问题描述】:

根据 Apollo GraphQL 文档,Apollo Links 可以分为两个方向 - 客户端 -> 服务器和服务器 -> 客户端:

但是,我无法找到有关来自服务器 -> 客户端的链接的文档或示例。我的目标是捕获并解析将存储在缓存中的传入数据。这样,我可以从缓存中读取自定义的解析数据。有没有可能做到这一点?

【问题讨论】:

    标签: javascript reactjs graphql apollo react-apollo


    【解决方案1】:

    【讨论】:

    • 太棒了!感谢您的帮助!
    猜你喜欢
    • 2020-02-12
    • 2020-08-05
    • 1970-01-01
    • 2019-01-09
    • 1970-01-01
    • 1970-01-01
    • 2021-06-21
    • 2020-06-06
    • 1970-01-01
    相关资源
    最近更新 更多