Answers for "how to change the name of a field in the output mongodb"

2

mongodb rename field

db.products.updateMany({}, {
  $rename: { "foo": "bar" }
})
Posted by: Guest on January-19-2022

Code answers related to "how to change the name of a field in the output mongodb"

Code answers related to "Javascript"

Browse Popular Code Answers by Language