[SERVER-19278] How to update multiple array elements at once. Created: 03/Jul/15 Updated: 03/Jul/15 Resolved: 03/Jul/15 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Querying |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Question | Priority: | Major - P3 |
| Reporter: | saurav ranjan | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Participants: | |||||||||
| Description |
|
"helparray" : [ , , { "helpid" : 3, "state" : true, "_id" : ObjectId("55952146f20e4d481e315020") }] This is my helparray.I want to update all state to false at once. |
| Comments |
| Comment by Ramon Fernandez Marina [ 03/Jul/15 ] |
|
Thanks for your report saurav2501. There's currently no operator to do this, but this has been requested already in Please note that the SERVER project is for reporting bugs or feature suggestions for the MongoDB server. For MongoDB-related support discussion please post on the mongodb-user group or Stack Overflow with the mongodb tag, where your question will reach a larger audience. A question like this involving more discussion would be best posted on the mongodb-user group. Regards, |