ExecutionContext
in package
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.
Tags
Table of Contents
- $argsMapper : callable
- $contextValue : mixed
- $errors : array<string|int, mixed>
- $fieldResolver : callable
- $fragments : array<string|int, mixed>
- $operation : OperationDefinitionNode
- $promiseAdapter : PromiseAdapter
- $rootValue : mixed
- $schema : Schema
- $variableValues : array<string|int, mixed>
- __construct() : mixed
- addError() : void
Properties
$argsMapper
public
callable
$argsMapper
Tags
$contextValue
public
mixed
$contextValue
$errors
public
array<string|int, mixed>
$errors
$fieldResolver
public
callable
$fieldResolver
Tags
$fragments
public
array<string|int, mixed>
$fragments
$operation
public
OperationDefinitionNode
$operation
$promiseAdapter
public
PromiseAdapter
$promiseAdapter
$rootValue
public
mixed
$rootValue
$schema
public
Schema
$schema
$variableValues
public
array<string|int, mixed>
$variableValues
Methods
__construct()
public
__construct(Schema $schema, array<string, FragmentDefinitionNode> $fragments, mixed $rootValue, mixed $contextValue, OperationDefinitionNode $operation, array<string, mixed> $variableValues, array<int, Error> $errors, callable $fieldResolver, callable $argsMapper, PromiseAdapter $promiseAdapter) : mixed
Parameters
- $schema : Schema
- $fragments : array<string, FragmentDefinitionNode>
- $rootValue : mixed
- $contextValue : mixed
- $operation : OperationDefinitionNode
- $variableValues : array<string, mixed>
- $errors : array<int, Error>
- $fieldResolver : callable
- $argsMapper : callable
- $promiseAdapter : PromiseAdapter
Tags
Return values
mixed —addError()
public
addError(Error $error) : void
Parameters
- $error : Error
