Home/
Manual/
monitoring / commandfailedevent/ MongoDB\Driver\Monitoring\CommandFailedEvent::getCommandName
MongoDB\Driver\Monitoring\CommandFailedEvent::getCommandName
PHP function
Edit on GitHub ✎
(mongodb >=1.3.0)
Returns the command name
Description
MongoDB\Driver\Monitoring\CommandFailedEvent::getCommandName(): string
Returns the command name (e.g. "find", "aggregate").
Parameters Parameters
Return Values
Returns the command name.