[SERVER-9726] cant append for subdocument level 2 Created: 18/May/13 Updated: 18/May/13 Resolved: 18/May/13 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Querying |
| Affects Version/s: | 2.4.3 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Critical - P2 |
| Reporter: | abdelouahab | Assignee: | Unassigned |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Windows, Linux. |
||
| Issue Links: |
|
||||||||
| Operating System: | ALL | ||||||||
| Participants: | |||||||||
| Description |
|
It seems that i can go further than one subdocument if i want to add it dynamicaly, here is the code: db.users.update( {"pup.cmn.id":id}, {"$addToSet":{"pup.cmn": {"abus":email}}}) OperationFailure: can't append to array using string field name: cmn db.users.update( {"pup.cmn.id":id}, {"$addToSet":{"pup.$.cmn": {"abus":email}}}) "cmn" : |
| Comments |
| Comment by abdelouahab [ 18/May/13 ] |
|
ah so it has been already asked! sorry |
| Comment by Scott Hernandez (Inactive) [ 18/May/13 ] |
|
The feature you want does not exist yet. Please vote/watch |