Mongo error when updating: cannot use the part to traverse the element [duplicate]
问题 This question already has answers here : Updating a Nested Array with MongoDB (2 answers) Closed 2 years ago . I am attempting to update my mongo collection with the following structure { "_id" : "T6GqWsi9qSxnyGzgC", "spec_name" : "test", "version" : "test", "message_type" : "test", "message_trigger" : "test", "segments" : [ { "segment_id" : "MSH", "sequences" : [ { "dataType" : "ST", "optionality" : "R", "name" : "Field Seperator" }, { "dataType" : "ST", "optionality" : "R", "name" :