1
Guys, I would like to know how to update a document value 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 carHoraria of the course named Nodejs. In the case is with the workload of 100h. I would like to update only this course for the 120h workload.
Thank you very much Viniiciius! It worked.
– Diego Armando Cacilha