How to update active field of student 1 to true in the following mongo collection. (Given that, we know hostel_name, room_no, student_id to update)
{
"hostel_name": "ABC",
"rooms": [
{
"room_no": 1,
"students": [
{
"student_id": 1,
"active": false
},
{
"student_id": 2,
"active": true
}
]
}
]
}