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