const dbObjects = await Model.find({ b })
for (const obj of parsedObjects) {
const dbObject = dbObjects.find(elem => elem.id === obj.id)
if(!dbObject) {
//dbObjects.shift(obj)
} else if(!(dbObject.e.length === obj.e.length)){
dbObject.e = obj.e
console.log(dbObjects)
}
}
await dbObjects.save()
for (const obj of parsedObjects) {
const dbObject = dbObjects.find(elem => elem.id === obj.id)
.....
// а вот здесь наверно получится
await dbObject.save()
}