Support arbitrary expressions for 'field' parameter for $getField

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Fixed
    • Priority: Major - P3
    • 7.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Optimization
    • Fully Compatible
    • QO 2023-09-04, QO 2023-09-18, QO 2023-10-02, QO 2023-10-16
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The $getField operator only supports expressions that resolve to string literals. This ticket is requesting an expansion to $getField that would support any expressions that resolve to string values. For example,

      { $getField: { field: { $toString: "$num" }, input: "$doc" } }

              Assignee:
              Henri Nikku
              Reporter:
              Matthew Chiaravalloti
              Votes:
              1 Vote for this issue
              Watchers:
              14 Start watching this issue

                Created:
                Updated:
                Resolved: