db.institute.find().snapshot().forEach(
function (elem) {
db.institute.update(
{
_id: elem._id
},
{
$set: {
district: elem.destrict
},
$unset: {
destrict: “”
}
}
);
}
);