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 document |
$options | array | Command options |