MongoDB\Driver\Exception\CommandException::getResultDocument

Returns the result document for the failed command

Description

final public object MongoDB\Driver\Exception\CommandException::getResultDocument()

Returns the result document for the failed command.

Parameters

This function has no parameters.

Return Values

The result document for the failed command.

See Also

  • MongoDB\Driver\Manager::executeCommand