Cannot update list inside deep rooted object

So i have this collection named “marks” inside this collection i have documents that mainly contain two fields 1) classname and 2) classes. What i intend to do is to update the student (name) field and the email field. Inside the an element of classes => classData => students. I have tried to use updateMany and nothing seems to be working. The first image should be the query i’m trying and the second image is the model structure of the document. Any help pls?