You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.
Sometimes, one wants to cache objects that result from some query that could also appear on the root query by id. I go into more detail on this here: apollographql/apollo-client#706.
A potential solution to this could be by passing updateQueries for query operations (and not just for mutation operations). This would allow the user to simply update the relevant queries given the data they get back. If they want to update the root query so that it caches an object by it's id then they can do that.
@tmeasday, fair enough. I'll comment on apollographql/apollo-client#706 mentioning a variation of this as a potential solution. I didn't care to do that initially because updateQueries is a react-apollo thing (as far as I know... I might be wrong).
Sometimes, one wants to cache objects that result from some query that could also appear on the root query by id. I go into more detail on this here: apollographql/apollo-client#706.
A potential solution to this could be by passing
updateQueries
for query operations (and not just for mutation operations). This would allow the user to simply update the relevant queries given the data they get back. If they want to update the root query so that it caches an object by it's id then they can do that.What do you guys (@helfer, @tmeasday, and @stubailo) think?
The text was updated successfully, but these errors were encountered: