Hi,
Note that questions related to the use of MongoDB (i.e. your question) are better sent to mongodb-user group. This group (mongodb-dev) is for discussion for/by/about developers/development/code of MongoDB.
Please see MongoDB: Unique Indexes for information preventing duplicates entry based on unique field(s).
If you have further questions about duplicates, please post a new discussion on mongodb-user group along with information below:
Regards,
Wan.