have to update the field name of all the documents from "FULLNAME" to "fullname", how can I do it in one go?
stop the app accessing the db for a little bit, Run an update query on all docs, Update the app to make sure it’s aware of the change and start it
https://docs.mongodb.com/manual/reference/operator/update/rename/ Hope this helps
Обсуждают сегодня