node js mongodb pembaruan objek bersarang

//just read documentaion in source and see how to  use the $ sign !! 
myDataBase.updateOne({ 'project': 'test2', 'issues._id': new ObjectID('61006f2409a2524514d877ce') }, { $set: { 'issues.$.open': true, 'issues.$.updated_on': new Date() } })
//for  mongodb 4+ 
const ObjectId = require('mongodb').ObjectId;
abdelghanyMh