[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:
Related
related to SERVER-1243 New operator to update all matching i... Closed
Participants:

 Description   

"helparray" : [

{ "helpid" : 1, "state" : true, "_id" : ObjectId("5595213af20e4d481e31501e") }

,

{ "helpid" : 2, "state" : true, "_id" : ObjectId("55952141f20e4d481e31501f") }

,

{ "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 SERVER-1243 so I'd encourage you to vote for that ticket.

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,
Ramón.

Generated at Thu Feb 08 03:50:26 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.