You are here

public function QueryProcessor::executeSingle in GraphQL 8.3

Parameters

\GraphQL\Server\ServerConfig $config:

\GraphQL\Server\OperationParams $params:

Return value

mixed

1 call to QueryProcessor::executeSingle()
QueryProcessor::processQuery in src/GraphQL/Execution/QueryProcessor.php
Processes one or multiple graphql operations.

File

src/GraphQL/Execution/QueryProcessor.php, line 118

Class

QueryProcessor

Namespace

Drupal\graphql\GraphQL\Execution

Code

public function executeSingle(ServerConfig $config, OperationParams $params) {
  $adapter = new SyncPromiseAdapter();
  $result = $this
    ->executeOperationWithReporting($adapter, $config, $params, FALSE);
  return $adapter
    ->wait($result);
}