MongoError,err:E11000 duplicate key error

前端 未结 5 850
抹茶落季
抹茶落季 2020-12-28 15:40

I have a MongoDb schema like this

    var User = new Schema({
    \"UserName\": { type: String, required: true },
    \"Email\": { type: String, required: tr         


        
5条回答
  •  盖世英雄少女心
    2020-12-28 15:57

    I got the similar issue on my project. I tried to clear out all the documents and the dup issue still keep popping up. Until I dropped this collection and re-start my node service, it just worked.

提交回复
热议问题