Answers for "mongo db replace a field name"

2

update field name in mongodb

// false,true is set for =>{upsert:false, multi:true}
db.foo.update({}, {$rename:{"name.additional":"name.last"}}, false, true);
Posted by: Guest on August-11-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language