how to change name of existing field in mongod through shell code example
Example: mongodb change key name
db.students.updateMany( {}, { $rename: { "nmae": "name" } } )
db.students.updateMany( {}, { $rename: { "nmae": "name" } } )