MongoError,err:E11000 duplicate key error

前端 未结 5 839
抹茶落季
抹茶落季 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条回答
  •  旧时难觅i
    2020-12-28 16:08

    There should be an index that is blocking.

    You can try the db.collection.dropIndex() method

    medinfo.users.dropIndexes()

提交回复
热议问题