update the filed name in mongo collection code example Example: mongodb change key name db.students.updateMany( {}, { $rename: { "nmae": "name" } } )