delete a field from all documents

PHOTO EMBED

Fri Apr 30 2021 12:17:40 GMT+0000 (Coordinated Universal Time)

Saved by @tapasdash #nodejs #mongoose #mongodb

db.customers.updateMany({}, {$unset:{"customerName":1}})
content_copyCOPY