Automattic\WooCommerce\Vendor\GraphQL\Server

StandardServer::executePsrRequestpublicWC 1.0

Executes Automattic\WooCommerce\Vendor\GraphQL operation and returns execution result (or promise when promise adapter is different from SyncPromiseAdapter).

Method of the class: StandardServer{}

No Hooks.

Returns

ExecutionResult|Array. ExecutionResult>|Promise

Usage

$StandardServer = new StandardServer();
$StandardServer->executePsrRequest( $request );
$request(RequestInterface) (required)
.

StandardServer::executePsrRequest() code WC 10.9.1

public function executePsrRequest(RequestInterface $request)
{
    $parsedBody = $this->helper->parsePsrRequest($request);

    return $this->executeRequest($parsedBody);
}