Dunebook / codesource

0 stars 0 forks source link

how-to-fix-mongoerrore11000-duplicate-key-error-collection/ #3

Open utterances-bot opened 2 years ago

utterances-bot commented 2 years ago

How to fix MongoError:e11000 duplicate key error collection

In this article, you are going to learn about how to fix MongoError:e11000 duplicate key error collection. Working in a NoSQL database

https://codesource.io/how-to-fix-mongoerrore11000-duplicate-key-error-collection/

YogeshSharma01 commented 2 years ago

Hello there I removed unique: true but still I'm getting the sam error?

ayoubbarkaoui101 commented 2 years ago

hey guys, i find the solution. Even though u ve changed unique to false, you should drop the unique from mongodb compass by going to you databases, choose your collection and then go to indexes, there need to be the unique fields u ve set then delete the field that you dont want to be unique

umasankar-swain commented 1 year ago

prnt.sc/nu8OrllXb0Py ,as you can check the screenshot I have not set any unique key but I am getting this same error.What should I do?????