public function ResolveContext::__construct in GraphQL 8.3
Same name and namespace in other branches
- 8.4 src/GraphQL/Execution/ResolveContext.php \Drupal\graphql\GraphQL\Execution\ResolveContext::__construct()
ResolveContext constructor.
Parameters
array $globals: List of global values to expose to field resolvers.
array $rootContext: The root context values the query will be initialised with.
File
- src/
GraphQL/ Execution/ ResolveContext.php, line 41
Class
Namespace
Drupal\graphql\GraphQL\ExecutionCode
public function __construct(array $globals = [], $rootContext = []) {
$this->globals = $globals;
$this->rootContext = $rootContext;
}