[DOCS-16471] Investigate changes in SERVER-74371: Support arbitrary expressions for 'field' parameter for $getField Created: 01/Nov/23  Updated: 13/Nov/23  Resolved: 09/Nov/23

Status: Closed
Project: Documentation
Component/s: manual, Server
Affects Version/s: None
Fix Version/s: 7.2.0-rc0, Server_Docs_20231113

Type: Task Priority: Minor - P4
Reporter: Backlog - Core Eng Program Management Team Assignee: Sarah Simpers
Resolution: Done Votes: 0
Labels: feature
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
documents SERVER-74371 Support arbitrary expressions for 'fi... Closed
Participants:
Days since reply: 14 weeks ago
Story Points: 2

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


Generated at Thu Feb 08 08:15:27 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.