Answers for "how to change a field name in mongodb"

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 "how to change a field name in mongodb"

Code answers related to "Javascript"

Browse Popular Code Answers by Language