Automattic\WooCommerce\Vendor\GraphQL\Server
StandardServer::executePsrRequest
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
Usage
$StandardServer = new StandardServer(); $StandardServer->executePsrRequest( $request );
- $request(RequestInterface) (required)
- .
StandardServer::executePsrRequest() StandardServer::executePsrRequest code WC 10.9.1
public function executePsrRequest(RequestInterface $request)
{
$parsedBody = $this->helper->parsePsrRequest($request);
return $this->executeRequest($parsedBody);
}