cacheKeyForField

abstract fun cacheKeyForField(field: CompiledField, variables: Executable.Variables): CacheKey?

Return the computed the cache key for a composite field.

If the field is of object type, you can get the object typename with field.type.rawType().name If the field is of interface 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 the returned CacheKey is null, the resolver will use the default handling and use any previously cached value.