最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

typescript - Apollo client type policy on fetch instead of cache? - Stack Overflow

programmeradmin4浏览0评论

I know I can set a type policy on the client side cache, where I can convert a field from one type to another with some processing, but this only works on queries that are cached. If I don't cache a queries results, this type conversion never occurs. Is there a way to define a type policy (to convert a field from one type to another) on the initial fetch so that it doesn't matter whether I cache a query or not?

发布评论

评论列表(0)

  1. 暂无评论