yii\mongodb\Database::createCommand PHP Method

createCommand() public method

Creates MongoDB command associated with this database.
Since: 2.1
public createCommand ( array $document = [] ) : Command
$document array command document contents.
return Command command instance.
    public function createCommand($document = [])
    {
        return $this->connection->createCommand($document, $this->name);
    }