src/Server/StandardServer.php
public function executeRequest($parsedBody = null)
    {
        if ($parsedBody === null) {
            $parsedBody = $this->helper->parseHttpRequest();
        }

        if (is_array($parsedBody)) {
            return $this->helper->executeBatch($this->config, $parsedBody);
        }

        return $this->helper->executeOperation($this->config, $parsedBody);
    }
public function executeRequest($parsedBody = null)
    {
        if ($parsedBody === null) {
            $parsedBody = $this->helper->parseHttpRequest();
        }

        if (is_array($parsedBody)) {
            return $this->helper->executeBatch($this->config, $parsedBody);
        }

        return $this->helper->executeOperation($this->config, $parsedBody);
    }
Executes GraphQL operation and returns execution result
(or promise when promise adapter is different from SyncPromiseAdapter).

By default (when $parsedBody is not set) it uses PHP globals to parse a request.
It is possible to implement request parsing elsewhere (e.g. using framework Request instance)
and then pass it to the server.

PSR-7 compatible method executePsrRequest() does exactly this.

@param OperationParams|OperationParams[] $parsedBody

@return ExecutionResult|ExecutionResult[]|Promise

@throws InvariantViolation

@api