CacheKeyGeneratorContext

class CacheKeyGeneratorContext(val field: CompiledField, val variables: Executable.Variables)

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.apollo.api.CompiledNotNullType and com.apollographql.apollo.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
constructor(field: CompiledField, variables: Executable.Variables)

Properties

Link copied to clipboard
val field: CompiledField
Link copied to clipboard
val variables: Executable.Variables