-
Type: Task
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Labels:
Description
Downstream Change Summary
This patch removes the following restrictions on $merge (both from https://docs.mongodb.com/manual/reference/operator/aggregation/merge/#merge-into):
-The output collection cannot be the same collection as the collection being aggregated
-The output collection cannot appear in any other stages of the pipeline
Description of Linked Ticket
Enable functionality to permit $out to merge/append to the aggregation source collection.
Scope of changes
Impact to Other Docs
MVP (Work and Date)
Resources (Scope or Design Docs, Invision, etc.)
- documents
-
SERVER-42137 Allow aggregation $merge stage to write to a collection that the query also reads from
- Closed