You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/50-aggregation/7-merge.mdx
+37-7
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,6 @@
1
+
importTabsfrom"@theme/Tabs";
2
+
importTabItemfrom"@theme/TabItem";
3
+
1
4
# 🦸 $merge
2
5
3
6
In MongoDB, the **$merge** stage allows you to **write the results of an aggregation pipeline into a new or existing collection**. This is similar to the concept of "INSERT INTO ... SELECT" or "MERGE INTO" in SQL databases.
0 commit comments