Apollo Client – Demystifying Cache Normalization
apollographql.com
apollographql.com
query profile(name: $name) {
id, name, address
}
query profile(id: $id) {
name, address
}
If the second query never made before the first query, even if they access the same object, it needs to make the network call again for the second query.However, once you made all the queries, the normalization process will make sure the object is always fresh and there is no need for the extra network trip.
https://www.apollographql.com/docs/react/caching/advanced-to...