-
Type: New Feature
-
Resolution: Fixed
-
Priority: Major - P3
-
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
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" } }
- is depended on by
-
COMPASS-7390 Investigate changes in SERVER-74371: Support arbitrary expressions for 'field' parameter for $getField
- Closed
- is related to
-
SERVER-81496 Weird shapification behavior for $convert/$toString
- Closed
- related to
-
SERVER-67030 `$getField` doesn't work with a dynamic `field`
- Closed
-
JAVA-5160 Test arbitrary expressions for field names
- Backlog
- links to