Add globalIDs option to omit typenames from entity cache keys.
This allows schemas with global ID guarantees and no ID overlap to combine entities in the cache. While this isn't recommended per se, since it's often a schema design problem, rather than a cache problem, it can be used to create strategic overlaps in the cache, when a type of an object implementing an interface “changes”
Set of changes
Add globalIDs option and update keyOfEntity function
Resolves #3176
Summary
Add
globalIDs
option to omit typenames from entity cache keys.This allows schemas with global ID guarantees and no ID overlap to combine entities in the cache. While this isn't recommended per se, since it's often a schema design problem, rather than a cache problem, it can be used to create strategic overlaps in the cache, when a type of an object implementing an interface “changes”
Set of changes
globalIDs
option and updatekeyOfEntity
function