[SERVER-206] $set cannot update an embedded object and create an embedded object at the same time Created: 31/Jul/09 Updated: 12/Jul/16 Resolved: 14/Jan/10 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Write Ops |
| Affects Version/s: | 0.9.7 |
| Fix Version/s: | 1.3.1 |
| Type: | Improvement | Priority: | Minor - P4 |
| Reporter: | Wouter | Assignee: | Eliot Horowitz (Inactive) |
| Resolution: | Done | Votes: | 1 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Participants: |
| Description |
|
I found this bug (I think): // create an object with an embedded set of objects ]}); // now updated key1 in set and add an embedded object // however it doesn't " // doing the updates separate from each other does work: ] , "new" : {"key" : 2}} I guess, somehow it is not possible to use $set to create a new embedded object while at the same time updating an existing embedded object. |
| Comments |
| Comment by auto [ 14/Jan/10 ] |
|
Author: {'name': 'Eliot Horowitz', 'email': 'eliot@10gen.com'}Message: test for |
| Comment by Wouter [ 31/Jul/09 ] |
|
Hmm maybe it is related to this bug: |