I would like to update a field in an array of embedded documents.
My sample document is:
db.students.insert(
{
first_name:'AA',
last_name:'BB',
cours_reussis:[{intitule:'PAI',note:0,name_school:'EPFC'}]
}
)
I'd like to change the value of name_school
to "ENSA" instead of "EPFC".