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