Allow dependency graph to look past $replaceRoot

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Query Optimization
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      $replaceRoot is completely opaque to the dependency graph.

      We should improve the describeTransformation implementation for that stage to report at least the following base cases.

      {$replaceWith: {a: "$b"}} reported as rename
      {$replaceWith: "$b"} reported as new kind of "unnesting" operation 

      This can allow the dependency graph to preserve information for fields past $replaceRoot.

            Assignee:
            Unassigned
            Reporter:
            Vesko Karaganev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: