Update all UserDrinks to rename the field:

PHOTO EMBED

Mon Jan 02 2023 07:10:19 GMT+0000 (UTC)

Saved by @zedkrimo #javascript #js #nodejs

UserDrinks.update({}, { $rename: { "creator" : "user" } }, { multi: true }, callback)
content_copyCOPY

https://stackoverflow.com/questions/43070692/update-schema-in-mongoose-to-add-new-property