我在mongoose中定义了一个模式,如下所示:varVolunteerSchema=newSchema({......otherfields.....preferLocations:[{type:Schema.ObjectId,ref:'Location'}].....});我正在使用volunteer.save()方法来更新模型。更新到volunteer模型时,出现如下错误:{[DivergentArrayError:Foryourowngood,using`document.save()`toupdateanarraywhichwasselectedusingan$elemMat