actualización de MongoDB muchos
db.vendors.updateMany(
{isPartner:undefined},
{ $set: { isPartner: false}}
)
in this example it loops over all documents, if isPartner exists it keeps it the same,
else it will be set to false
Muddy Mongoose