php8.5
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.

See Also

Source: reference/mongodb/mongodb/driver/exception/commandexception/getresultdocument.xml · from the official PHP manual (php/doc-en)