[SERVER-42001] Pipeline update $unset stage should accept single string Created: 28/Jun/19  Updated: 29/Oct/23  Resolved: 08/Jul/19

Status: Closed
Project: Core Server
Component/s: Aggregation Framework
Affects Version/s: None
Fix Version/s: 4.2.0-rc5, 4.3.1

Type: Improvement Priority: Major - P3
Reporter: Asya Kamsky Assignee: Xin Hao Zhang (Inactive)
Resolution: Fixed Votes: 0
Labels: query-44-grooming
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Documented
is documented by DOCS-12865 Investigate changes in SERVER-42001: ... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v4.2
Sprint: Query 2019-07-15
Participants:

 Description   

Currently if you try an update with $unset:"x" instead of accepting it as directive to unset field "x" it gives an error that it's expecting an array. This isn't consistent with other places where we implicitly assume that they meant [x].



 Comments   
Comment by Githook User [ 25/Jul/19 ]

Author:

{'name': 'Xin Hao Zhang', 'email': 'xinhao.zhang@mongodb.com', 'username': 'xinhaoz'}

Message: SERVER-42001 unset stage should accept single string

(cherry picked from commit 13434801be12a72d370147aed4c2ac194e658062)
Branch: v4.2
https://github.com/mongodb/mongo/commit/27b4ffbccb9f9b7bc40c03c7824e0b8f0cc0a248

Comment by Githook User [ 08/Jul/19 ]

Author:

{'name': 'Xin Hao Zhang', 'email': 'xinhao.zhang@mongodb.com', 'username': 'xinhaoz'}

Message: SERVER-42001 unset stage should accept single string
Branch: master
https://github.com/mongodb/mongo/commit/13434801be12a72d370147aed4c2ac194e658062

Generated at Thu Feb 08 04:59:16 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.