I have a MongoDb schema like this
var User = new Schema({ \"UserName\": { type: String, required: true }, \"Email\": { type: String, required: tr
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.