Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-7390

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

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

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

              Created:
              Updated:
              Resolved: