CacheKeyGeneratorContext
class CacheKeyGeneratorContext(val field: CompiledField, val variables: Executable.Variables)
Content copied to clipboard
The context in which an object is normalized.
Parameters
field
the field representing the object or for lists, the field representing the list. field.type
is not always the type of the object. Especially, it can be any combination of com.apollographql.apollo3.api.CompiledNotNullType and com.apollographql.apollo3.api.CompiledListType. Use field.type.rawType()
to access the type of the object. For interface fields, it will be the interface type, not concrete types.
variables
the variables used in the operation where the object is normalized.
Constructors
Link copied to clipboard
fun CacheKeyGeneratorContext(field: CompiledField, variables: Executable.Variables)
Content copied to clipboard