You are here

public function ExecutorFactory::create in GraphQL 8.4

Factory method to make a new executor.

Parameters

\GraphQL\Executor\Promise\PromiseAdapter $adapter:

\GraphQL\Type\Schema $schema:

\GraphQL\Language\AST\DocumentNode $document:

mixed $root:

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

mixed $variables:

string $operation:

callable $resolver:

Return value

\Drupal\graphql\GraphQL\Execution\Executor

File

src/GraphQL/Execution/ExecutorFactory.php, line 45

Class

ExecutorFactory
Service to make our GraphQL executor, can be swapped out.

Namespace

Drupal\graphql\GraphQL\Execution

Code

public function create(PromiseAdapter $adapter, Schema $schema, DocumentNode $document, $root, ResolveContext $context, $variables, $operation, callable $resolver) {
  return Executor::create($this->container, $adapter, $schema, $document, $context, $root, $variables, $operation, $resolver);
}