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?
typescript - Apollo client type policy on fetch instead of cache? - Stack Overflow
评论列表(0)
- 暂无评论