Mongoose удалить документ из массива
//db.collection.findOneAndUpdate( filter, update, options )
//{ $pull: { <field1>: <value|condition>} }
List.findOneAndUpdate({ name: listName }, { $pull: { <field1>: <value|condition> } }, function(err, foundList) {
if (!err) {
//your code
}
}); //Here List is my collection name
//By Reacto Kalyan
Fair Falcon