Right now, after a successful mutation I send another request for the updated data. I'd like to eliminate this second request.
According to the Apollo docs, if I implement object IDs I can get cache updates for free. This relies on the graphql server returning a response (with the updated data) that can be normalized by Apollo.
Can the mutation response only include some of the fields for my object? For example I have a Hero
object that defines a Hero's name
and age
. But the UI only allows the user to change the name. Can I return just the Hero's name
in the response to leave the age
untouched?