[COMPASS-7390] Investigate changes in SERVER-74371: Support arbitrary expressions for 'field' parameter for $getField Created: 01/Nov/23  Updated: 29/Jan/24  Resolved: 29/Jan/24

Status: Closed
Project: Compass
Component/s: None
Affects Version/s: None
Fix Version/s: No version

Type: Investigation Priority: Major - P3
Reporter: Backlog - Core Eng Program Management Team Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-74371 Support arbitrary expressions for 'fi... Closed
Epic Link: COMPASS-6403
Documentation Changes: Not Needed

 Description   
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" } }



 Comments   
Comment by Anna Henningsen [ 29/Jan/24 ]

No impact, we don't have an explicit template for $getField

Generated at Wed Feb 07 22:46:23 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.