-
Type:
Improvement
-
Resolution: Done
-
Priority:
Major - P3
-
Affects Version/s: None
-
Component/s: Aggregation Framework
-
None
-
Fully Compatible
-
None
-
None
-
None
-
None
-
None
-
None
-
None
$project and $addFields are both aliases for a document source that implements optimizations for 1:1 transformations. Since $replaceRoot is also a 1:1 transformation, we can leverage these shared optimizations.