Catch the highlights of GraphQLConf 2023! Click for recordings. Or check out our recap blog post.
Docs
API Reference
Interfaces
ExecutionContext

graphql-tools-monorepo / executor/src / ExecutionContext

Interface: ExecutionContext<TVariables, TContext>

executor/src.ExecutionContext

Data that must be available at all points during query execution.

Namely, schema of the type system that is currently executing, and the fragments defined in the query document

Type parameters

NameType
TVariablesany
TContextany

Table of contents

Properties

Properties

contextValue

contextValue: TContext

Defined in

packages/executor/src/execution/execute.ts:115


errors

errors: GraphQLError[]

Defined in

packages/executor/src/execution/execute.ts:121


fieldResolver

fieldResolver: GraphQLFieldResolver<any, TContext>

Defined in

packages/executor/src/execution/execute.ts:118


fragments

fragments: Record<string, FragmentDefinitionNode>

Defined in

packages/executor/src/execution/execute.ts:113


operation

operation: OperationDefinitionNode

Defined in

packages/executor/src/execution/execute.ts:116


rootValue

rootValue: unknown

Defined in

packages/executor/src/execution/execute.ts:114


schema

schema: GraphQLSchema

Defined in

packages/executor/src/execution/execute.ts:112


signal

Optional signal: AbortSignal

Defined in

packages/executor/src/execution/execute.ts:123


subscribeFieldResolver

subscribeFieldResolver: GraphQLFieldResolver<any, TContext>

Defined in

packages/executor/src/execution/execute.ts:120


subsequentPayloads

subsequentPayloads: Set<AsyncPayloadRecord>

Defined in

packages/executor/src/execution/execute.ts:122


typeResolver

typeResolver: GraphQLTypeResolver<any, TContext>

Defined in

packages/executor/src/execution/execute.ts:119


variableValues

variableValues: TVariables

Defined in

packages/executor/src/execution/execute.ts:117