Well, I'd like to know how to update a value of a document that is inside an array. See the document:
> db.alunos.find().pretty()
{
"_id" : ObjectId("5ba141b186b9fc17121423a1"),
"nome" : "Diego",
"cursos" : [
{
"nome" : "Design Responsivo com Twitter Bootstrap",
"cargaHoraria" : 80
},
{
"nome" : "NodeJS",
"cargaHoraria" : 100
}
]
}
I need to update the loadTour of course with name NodeJS. In case it has the hour load of 100h. I would like to update only this course for the 120 hour workload.