mongoDB error : "Error: MongoError: E11000 duplicate key error collection: test.santas index: username_1 dup key: { username: null }"
https://www.freecodecamp.org/forum/t/mongoerror-e11000-duplicate-key-error-collection-timeformationbd-formations-index-description-1-dup-key-null/212336
I was working on this santa helena website. today I was building the components, creating a page for creating new santa.
But adding new santa made an error and there above was the error message and how I got to solve it.
I don't yet really get what was wrong with my very first collection.
maybe there must be some difference with those ones which can be created by my page, cuz the first one was made by Insomnia the API testing program.
------update
still getting errors. its weird that the data model for santa, the one that i modeled after has unique attribute but still works well.
https://stackoverflow.com/questions/57507314/i-am-getting-this-mongo-error-e11000-duplicate-key-error-collection-21day-cha
I was working on this santa helena website. today I was building the components, creating a page for creating new santa.
But adding new santa made an error and there above was the error message and how I got to solve it.
I don't yet really get what was wrong with my very first collection.
maybe there must be some difference with those ones which can be created by my page, cuz the first one was made by Insomnia the API testing program.
------update
still getting errors. its weird that the data model for santa, the one that i modeled after has unique attribute but still works well.
https://stackoverflow.com/questions/57507314/i-am-getting-this-mongo-error-e11000-duplicate-key-error-collection-21day-cha
댓글
댓글 쓰기