[SERVER-10561] Unset doesn't work for subarray field. Created: 19/Aug/13 Updated: 09/Jul/16 Resolved: 19/Aug/13 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Write Ops |
| Affects Version/s: | 2.4.0 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Phalguni Mukherjee | Assignee: | Unassigned |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Windows,Linux |
||
| Operating System: | ALL |
| Steps To Reproduce: | 1. Create a collection with name "students". { ] |
| Participants: |
| Description |
|
I have a collection: ] I want to unset date_created for all the test object for student_id 123, I placed the query as: { "$unset" : { "test.$.date_created" : ""}}), but it doesn't work. Whereas the same query works if I want to "$set" any field. |
| Comments |
| Comment by Eliot Horowitz (Inactive) [ 19/Aug/13 ] |
|
|