This PR fixes a bug in entity caching introduced by the fix in https://github.com/apollographql/router/pull/6888 for cases where several @key directives with different fields were declared on a type as documented here.
For example if you have this kind of entity in your schema:
type Product @key(fields: "upc") @key(fields: "sku") {
upc: ID!
sku: ID!
name: String
}
By @duckki & @bnjjj in https://github.com/apollographql/router/pull/7228
Fetched April 11, 2026