Answer the question
In order to leave comments, you need to log in
How to rename a field on some objects in mongo?
{
"_id": "1",
"demands": [
{
"dp": {
"name": "ABCDDD"
},
"old_field_name": "some value"
}
]
}
{
"_id": "2",
"demands": [
{
"dp": {
"name": "ABCEEE"
},
"old_field_name": "some value"
},
{
"dp": {
"name": "XYZ"
},
"field_name": "some value"
}
]
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question