listOfCacheKeysForField
open fun listOfCacheKeysForField(field: CompiledField, variables: Executable.Variables): List<CacheKey?>?
For a field that contains a list of objects, listOfCacheKeysForField returns a list of CacheKeys where each CacheKey identifies an object.
If the field is of object type, you can get the object typename with field.type.rawType().name
. If the field is of interface or union type, the concrete object typename is not predictable and the returned CacheKey must be unique in the whole schema as it cannot be namespaced by the typename anymore.
If an individual CacheKey is null, the resulting object will be null in the response. If the returned list of CacheKeys is null, the resolver will use the default handling and use any previously cached value.