Investigate changes in SERVER-74371: Support arbitrary expressions for 'field' parameter for $getField

XMLWordPrintableJSON

    • Type: Investigation
    • Resolution: Done
    • Priority: Major - P3
    • No version
    • Affects Version/s: None
    • Component/s: None
    • None
    • Not Needed

      Original Downstream Change Summary

      $getField now supports expressions for the 'field' option; before it only accepted constant string

      Description of Linked Ticket

      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:
            Unassigned
            Reporter:
            Backlog - Core Eng Program Management Team
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: