How does a unique index work in MongoDB (and why do you need it)? | LetsGit.IT