You are here

public function ResolveContext::__construct in GraphQL 8.3

Same name and namespace in other branches
  1. 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

ResolveContext

Namespace

Drupal\graphql\GraphQL\Execution

Code

public function __construct(array $globals = [], $rootContext = []) {
  $this->globals = $globals;
  $this->rootContext = $rootContext;
}