Trying to update a object in a array why it dont work?

I am using the node.js framework from this tutorial: https://www.w3schools.com/nodejs/nodejs_mongodb.asp

I have a strange problem which i dont understand, i have make a picture for better understanding:

If i just try to update another object in this array it does not work, but if i update the first object it does work, so please does somebody know why, is the mongo client which i use not good or does my query have a error?

i have find out that the problem was that i use a array of array objects my structur was wrong in the database, i have change it and now it work

3 Likes

Hi Florian!

So glad you found the solution!!

Karen

1 Like

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.