IdCacheKeyResolver
A simple CacheKeyResolver that uses the id/ids argument, if present, to compute the cache key. The name of the id arguments can be provided (by default "id" for objects and "ids" for lists). If several names are provided, the first present one is used. Only one level of list is supported - implement CacheResolver if you need arbitrary nested lists of objects.
Parameters
possible names of the argument containing the id for objects
possible names of the argument containing the ids for lists
See also
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.