部分从Apollo InMemory缓存返回结果,部分从网络返回结果

我有2个查询。第一个:

query {
    states {
        name,population
    }
}

第二个:

query {
    states {
        name
        population
    }
    users {
        name
        email
    }
}

(此示例是我实际运行的非常简化的版本)

如何在查询的state部分中使用缓存的值,但仍然在查询的user部分中访问网络?

hl994 回答:部分从Apollo InMemory缓存返回结果,部分从网络返回结果

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/2371382.html

大家都在问