Method | Description | |
---|---|---|
__construct ( string $databaseName, string $collectionName, array | object $filter, array | object $update, array $options = [] ) | Constructs an update command. | |
execute ( MongoDB\Driver\Server $server ) : |
Execute the operation. |
public __construct ( string $databaseName, string $collectionName, array | object $filter, array | object $update, array $options = [] ) | ||
$databaseName | string | Database name |
$collectionName | string | Collection name |
$filter | array | object | Query by which to filter documents |
$update | array | object | Update to apply to the matched documents |
$options | array | Command options |
public execute ( MongoDB\Driver\Server $server ) : |
||
$server | MongoDB\Driver\Server | |
return |