it convert the contact field from int to string

PHOTO EMBED

Fri Aug 20 2021 16:12:21 GMT+0000 (Coordinated Universal Time)

Saved by @tapasdash #nodejs #mongoose #mongodb #aggregate

db.customers.find({}).forEach(function (ch){db.customers.updateMany({},{$set:{"contact":ch.contact.toString()}})});
content_copyCOPY