change property name mongodb code example
Example: mongodb rename property
db.getCollection('posts').update({}, {$rename: { 'comments': 'texts'}} , {multi: true});
db.getCollection('posts').update({}, {$rename: { 'comments': 'texts'}} , {multi: true});