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