Answers for "mongo rename field"

3

mongodb change key name

db.students.updateMany( {}, { $rename: { "nmae": "name" } } )
Posted by: Guest on July-10-2020
0

mongodb rename property

db.getCollection('posts').update({}, {$rename: { 'comments': 'texts'}} , {multi: true});
Posted by: Guest on March-22-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language