[DOCS-1588] $unset invalid : "manual/reference/operator/unset.txt" Created: 09/Jun/13 Updated: 03/Nov/17 Resolved: 10/Jun/13 |
|
| Status: | Closed |
| Project: | Documentation |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | auto | Assignee: | Unassigned |
| Resolution: | Cannot Reproduce | Votes: | 0 |
| Labels: | collector-298ba4e7 | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Ubuntu 10.04 / MongoDB 2.4.4 (10Gen APT repository version) Location: http://docs.mongodb.org/manual/reference/operator/unset/ |
||
| Participants: | |
| Days since reply: | 10 years, 36 weeks, 2 days ago |
| Description |
|
Am I crazy? I'm losing it for sure! Issuing this command: db.mycollection.update( { thefield: 'avalue' }, { $unset: { unsetfield: 1 }}) Causes this error: Invalid modifier $unset
Reporter: Joseph T |
| Comments |
| Comment by Joseph Taylor [ 11/Jun/13 ] | |||||||||||||
|
Edit: oops! Even though the mongod version was 2.4.4, I never restarted the mongod process itself... the database version was 1.2.2. Solved! -------- MongoDB Shell Version: 2.4.4 Output from mongod.log: Mon Jun 10 20:07:47 insert test.foo 181ms exception userassert:Invalid modifier specified $unset 0ms exception userassert:Invalid modifier specified $unset 0ms | |||||||||||||
| Comment by Sam Kleinman (Inactive) [ 10/Jun/13 ] | |||||||||||||
|
I wasn't able to reproduce this issue:
as well as the following:
Please provide additional context to help us diagnose the documentation error or lack of clarity. Also consider asking this question of Stack Overflow (http://stackoverflow.com/questions/tagged/mongodb) or our user group (http://groups.google.com/group/mongodb-user). Regards, |