Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

mongodb rename field

db.products.updateMany({}, {
  $rename: { "foo": "bar" }
})
 
PREVIOUS NEXT
Tagged: #mongodb #rename #field
ADD COMMENT
Topic
Name
2+8 =