Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

mongodb rename property

db.getCollection('posts').update({}, {$rename: { 'comments': 'texts'}} , {multi: true});
 
PREVIOUS NEXT
Tagged: #mongodb #rename #property
ADD COMMENT
Topic
Name
6+8 =