public update ( string $collectionName, array | object $filter, array | object $update, array $options = [] ) : MongoDB\UpdateResult | ||
$collectionName | string | |
$filter | array | object | Query by which to filter documents |
$update | array | object | Update to apply to the matched documents |
$options | array | Command options |
return | MongoDB\UpdateResult |