Answers for "E11000 duplicate key error collection"

1

E11000 duplicate key error collection

just "drop the collection" from mongodb and then edit your schema with 
unique: false. 

because if you create collection first without unique and then try to make that field as
unique mongo will not allow you to do that.
Posted by: Guest on March-14-2022

Code answers related to "E11000 duplicate key error collection"

Browse Popular Code Answers by Language