You are here

protected function QueryProcessor::validateOperationParams in GraphQL 8.3

Parameters

\GraphQL\Server\OperationParams $params:

Return value

array

1 call to QueryProcessor::validateOperationParams()
QueryProcessor::executeOperation in src/GraphQL/Execution/QueryProcessor.php

File

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

Class

QueryProcessor

Namespace

Drupal\graphql\GraphQL\Execution

Code

protected function validateOperationParams(OperationParams $params) {
  $errors = (new Helper())
    ->validateOperationParams($params);
  return array_map(function (RequestError $error) {
    return Error::createLocatedError($error, NULL, NULL);
  }, $errors);
}