Use the SingleDocumentTransformation framework for $replaceRoot

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Done
    • Priority: Major - P3
    • 3.3.12
    • 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.

            Assignee:
            Carly Robison (Inactive)
            Reporter:
            Carly Robison (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: