DEV Community

Discussion on: Update an object in nested array in MongoDB

Collapse
 
ssembara profile image
Sebastianus Sembara

where do we get the inner and outer variables?

Collapse
 
rajeshroyal profile image
Rajesh Royal • Edited

You don't have to get those variables.

The inner and outer variables are used as placeholders. If you see in the arrayFilter we are modifying the ._id part of these variables.