Updates a single document within the collection based on the filter.
Supports both aggregation pipeline updates and standard update operators.
Returns the number of documents matched and modified.
Objects in the array may be modified inplace or replaced entirely.
Updates a single document within the collection based on the filter.
Supports both aggregation pipeline updates and standard update operators. Returns the number of documents matched and modified. Objects in the array may be modified inplace or replaced entirely.