protected function Executor::doExecuteUncached in GraphQL 8.4
Get query results on a cache miss.
Return value
\GraphQL\Executor\Promise\Promise
File
- src/
GraphQL/ Execution/ Executor.php, line 264
Class
- Executor
- Executes GraphQL queries with cache lookup.
Namespace
Drupal\graphql\GraphQL\ExecutionCode
protected function doExecuteUncached() {
$executor = ReferenceExecutor::create($this->adapter, $this->schema, $this->document, $this->root, $this->context, $this->variables, $this->operation, $this->resolver);
$event = new OperationEvent($this->context);
$this->dispatcher
->dispatch(OperationEvent::GRAPHQL_OPERATION_BEFORE, $event);
return $executor
->doExecute()
->then(function ($result) {
$event = new OperationEvent($this->context, $result);
$this->dispatcher
->dispatch(OperationEvent::GRAPHQL_OPERATION_AFTER, $event);
return $result;
});
}