Skip to content
ohsudo, Home

Tags

#mongoose

E11000
Databases

MongoDB "E11000 duplicate key error": read which index, and which value

Fix MongoDB "E11000 duplicate key error": read the index and value in the message, solve dup key null with a partial index, clean up duplicates, handle upsert races.

Beginner · 3 min read