You are here

public function OperationEvent::__construct in GraphQL 8.4

OperationEvent constructor.

Parameters

\Drupal\graphql\GraphQL\Execution\ResolveContext $context:

\GraphQL\Executor\ExecutionResult $result:

File

src/Event/OperationEvent.php, line 48

Class

OperationEvent
Represents an event that is triggered before and after a GraphQL operation.

Namespace

Drupal\graphql\Event

Code

public function __construct(ResolveContext $context, ExecutionResult $result = NULL) {
  $this->context = $context;
  $this->result = $result;
}