MongoDB Renommer la propriété

db.getCollection('posts').update({}, {$rename: { 'comments': 'texts'}} , {multi: true});
Tarik