ResolverContext

class ResolverContext(val field: CompiledField, val variables: Executable.Variables, val parent: Map<String, @JvmSuppressWildcards Any?>, val parentKey: String, val parentType: String, val cacheHeaders: CacheHeaders, val fieldKeyGenerator: FieldKeyGenerator, val path: List<CompiledField>)

Constructors

Link copied to clipboard
constructor(field: CompiledField, variables: Executable.Variables, parent: Map<String, @JvmSuppressWildcards Any?>, parentKey: String, parentType: String, cacheHeaders: CacheHeaders, fieldKeyGenerator: FieldKeyGenerator, path: List<CompiledField>)

Properties

Link copied to clipboard

The cache headers used to pass arbitrary information to the resolver

Link copied to clipboard
val field: CompiledField

The field to resolve

Link copied to clipboard

The FieldKeyGenerator to use to generate field keys

Link copied to clipboard

The parent object as a map. It can contain the same values as Record. Especially, nested objects will be represented by CacheKey

Link copied to clipboard

The key of the parent. Mainly used for debugging

Link copied to clipboard

The type of the parent

Link copied to clipboard
val path: List<CompiledField>

The path of the field to resolve. The first element is the root object, the last element is field.

Link copied to clipboard
val variables: Executable.Variables

The variables of the current operation