read (apollo)
from typePolicies (apollo)
#wip
https://www.apollographql.com/docs/react/caching/cache-field-behavior#the-read-function
gpt-5.icon
4-1. read(existing, helpers)
read は「キャッシュから読み出されるとき毎回動く getter」です。
existing: キャッシュに保存されている値
第2引数から readField, args, variables などが取れる
典型パターン:
1. 派生フィールド(fullName, isFavorite など)
2. ローカライズ(タイムゾーン変換など)
3. Backwards compatibility(API の型変更に対応する)