Please see the image below:
CodePudding user response:
use update like this
db.collection.update({},
{
$set: {
"available.3": false // index 3 means element number 4
}
})
if you are using mongoose your query is like this
Model.update({}, // model name instead of Model
{
$set: {
"available.3": false // index 3 means element number 4
}
})