[SERVER-15621] Rename in update allows creating "$" prefixed fields Created: 13/Oct/14  Updated: 07/Nov/14  Resolved: 14/Oct/14

Status: Closed
Project: Core Server
Component/s: Write Ops
Affects Version/s: 2.6.0
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Scott Hernandez (Inactive) Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: $rename, update
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-15622 New $prefix field (parents) not valid... Closed
Backwards Compatibility: Minor Change
Operating System: ALL
Participants:

 Description   

db.a.insert({_id:1, a:1})
db.a.update({a:1}, {$rename:{a:"b.$foo"}})
db.a.find()
{_id:1, b:{$foo:1}}


Generated at Thu Feb 08 03:38:31 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.