public function ResolveContext::__construct in GraphQL 8.4
Same name and namespace in other branches
- 8.3 src/GraphQL/Execution/ResolveContext.php \Drupal\graphql\GraphQL\Execution\ResolveContext::__construct()
ResolveContext constructor.
Parameters
\Drupal\graphql\Entity\ServerInterface $server:
\GraphQL\Server\OperationParams $operation:
\GraphQL\Language\AST\DocumentNode $document:
string $type:
array $config:
File
- src/
GraphQL/ Execution/ ResolveContext.php, line 76
Class
- ResolveContext
- Context that is provided during resolving the GraphQL tree.
Namespace
Drupal\graphql\GraphQL\ExecutionCode
public function __construct(ServerInterface $server, OperationParams $operation, DocumentNode $document, $type, array $config) {
$this
->addCacheContexts([
'user.permissions',
]);
$this->server = $server;
$this->config = $config;
$this->operation = $operation;
$this->document = $document;
$this->type = $type;
}