4 ms·
I have observed this same thing and found it unintuitive, but I think it makes sense? technically your `profile` field could be returning anything (even though
by xiaomai 6y ago
I have observed this same thing and found it unintuitive, but I think it makes sense? technically your `profile` field could be returning anything (even though you're passing an `id` param in, you potentially could be doing something like returning a sibling profile for the given id). iirc, there is a thing called "cache redirects" that let you teach apollo the right thing to do here.
- deleted 6y ago[deleted]
- candylifter 6y agoYup, you do it via type policies in v3 https://www.apollographql.com/docs/react/caching/advanced-topics/#cache-redirects-using-field-policy-read-functions https://www.apollographql.com/docs/react/caching/advanced-to...
- liuliu 6y agoHa, thanks! I mostly use Apollo iOS and didn't notice this, will check it out!