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

Errors/Exceptions

See Also

Source: reference/mongodb/mongodb/driver/monitoring/commandfailedevent/getcommandname.xml · from the official PHP manual (php/doc-en)