Rename field of complex type that is located in array
问题 I'm doing refactoring on production database and need to make some renamings. Version of mongodb is 1.8.0. I use C# driver to do refactoring of database. Have faced with problem when I try to rename field of complex type that is located in array. For example I have such document: FoobarCollection: { Field1: "", Field2: [ { NestedField1: "", NestedField2: "" }, { NestedField1: "", NestedField2: "" }, ... ] } I Need to rename NestedField2 into NestedField3 , for example. MongoDB documentation