vendor/api-platform/core/src/GraphQl/Executor.php line 30

  1. <?php
  2. /*
  3.  * This file is part of the API Platform project.
  4.  *
  5.  * (c) Kévin Dunglas <dunglas@gmail.com>
  6.  *
  7.  * For the full copyright and license information, please view the LICENSE
  8.  * file that was distributed with this source code.
  9.  */
  10. declare(strict_types=1);
  11. namespace ApiPlatform\GraphQl;
  12. use GraphQL\Executor\ExecutionResult;
  13. use GraphQL\GraphQL;
  14. use GraphQL\Type\Schema;
  15. /**
  16.  * Wrapper for the GraphQL facade.
  17.  *
  18.  * @author Alan Poulain <contact@alanpoulain.eu>
  19.  */
  20. final class Executor implements ExecutorInterface
  21. {
  22.     /**
  23.      * {@inheritdoc}
  24.      */
  25.     public function executeQuery(Schema $schema$sourcemixed $rootValue nullmixed $context null, array $variableValues nullstring $operationName null, callable $fieldResolver null, array $validationRules null): ExecutionResult
  26.     {
  27.         return GraphQL::executeQuery($schema$source$rootValue$context$variableValues$operationName$fieldResolver$validationRules);
  28.     }
  29. }