PHP Class GraphQL\Executor\ExecutionContext

Namely, schema of the type system that is currently executing, and the fragments defined in the query document
Show file Open project: webonyx/graphql-php Class Usage Examples

Public Properties

Property Type Description
$contextValue mixed
$errors array
$fragments GraphQL\Language\AST\FragmentDefinitionNode[]
$operation GraphQL\Language\AST\OperationDefinitionNode
$rootValue mixed
$schema GraphQL\Schema
$variableValues array

Public Methods

Method Description
__construct ( $schema, $fragments, $root, $contextValue, $operation, $variables, $errors )
addError ( Error $error )

Method Details

__construct() public method

public __construct ( $schema, $fragments, $root, $contextValue, $operation, $variables, $errors )

addError() public method

public addError ( Error $error )
$error GraphQL\Error\Error

Property Details

$contextValue public property

public mixed $contextValue
return mixed

$errors public property

public array $errors
return array

$fragments public property

public FragmentDefinitionNode[],GraphQL\Language\AST $fragments
return GraphQL\Language\AST\FragmentDefinitionNode[]

$operation public property

public OperationDefinitionNode,GraphQL\Language\AST $operation
return GraphQL\Language\AST\OperationDefinitionNode

$rootValue public property

public mixed $rootValue
return mixed

$schema public property

public Schema,GraphQL $schema
return GraphQL\Schema

$variableValues public property

public array $variableValues
return array