Home/
Manual/
exception / commandexception/ MongoDB\Driver\Exception\CommandException::getResultDocument
MongoDB\Driver\Exception\CommandException::getResultDocument
PHP function
Edit on GitHub ✎
(mongodb >= 1.5.0)
Returns the result document for the failed command
Description
MongoDB\Driver\Exception\CommandException::getResultDocument(): object
Returns the result document for the failed command.
Parameters Parameters
Return Values
The result document for the failed command.