-
Type: Investigation
-
Resolution: Done
-
Priority: Major - P3
-
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" } }
- depends on
-
SERVER-74371 Support arbitrary expressions for 'field' parameter for $getField
- Closed