[DOCS-13236] Investigate changes in SERVER-42137: Allow aggregation $merge stage to write to a collection that the query also reads from Created: 20/Nov/19  Updated: 13/Nov/23  Resolved: 03/Feb/20

Status: Closed
Project: Documentation
Component/s: manual, Server
Affects Version/s: None
Fix Version/s: 4.3.2, Server_Docs_20231030, Server_Docs_20231106, Server_Docs_20231105, Server_Docs_20231113

Type: Task Priority: Major - P3
Reporter: Backlog - Core Eng Program Management Team Assignee: Jeffrey Allen
Resolution: Fixed Votes: 0
Labels: docs-aggregation, docs-grab-bag
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
documents SERVER-42137 Allow aggregation $merge stage to wri... Closed
Participants:
Days since reply: 4 years, 1 week, 2 days ago
Epic Link: DOCS: 4.4 Server Release Work

 Description   

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.)



 Comments   
Comment by Githook User [ 03/Feb/20 ]

Author:

{'username': 'jeff-allen-mongo', 'name': 'jeff-allen-mongo', 'email': 'jeffrey.allen@10gen.com'}

Message: (DOCS-13236): merge stage can now output to the same collection which is being read
Branch: master
https://github.com/mongodb/docs/commit/9e540f7abb79fa052e74fe66c904e39449338704

Generated at Thu Feb 08 08:07:16 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.