CacheKeyResolver
A CacheResolver that resolves objects and list of objects and falls back to the default resolver for scalar fields. It is intended to simplify the usage of CacheResolver when no special handling is needed for scalar fields.
Override cacheKeyForField to compute a cache key for a field of composite type. Override listOfCacheKeysForField to compute a list of cache keys for a field of 'list-of-composite' type.
For simplicity, this only handles one level of lists. Implement CacheResolver if you need arbitrary nested lists of objects.
Inheritors
Functions
Returns the computed cache key for a composite field.
For a field that contains a list of objects, listOfCacheKeysForField returns a list of CacheKeys where each CacheKey identifies an object.
Resolves a field from the cache. Called when reading from the cache, usually before a network request.