New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot create an index #5782
Comments
Can you please provide more substantial code samples and error stack traces? Better yet, please just follow the issue template. |
Which version of mongodb are you using? |
Same issue here... I first got this issue when switching to Atlas |
I believe if you remove the unique: true from your _id field the error will go away. |
Yeah @dworrad is right. The issue is that you set |
Hi, I cannot add anything to my database using mongoose.. its gives me this error
"Unhandled rejection MongoError: Cannot create an index on collection.name with an insert to 59bfc8c4970199306ad8914f_collection.system.indexes"
and this "E11000 duplicate key error collection: collection.name index: id"
I am pretty sure there is nothing in the database, i even deleted the collection..same error. please help
using mongoose 4.12.6 & node v8.6.0
The text was updated successfully, but these errors were encountered: