This is how I created unique index for my key
db.members.createIndex( { "name": 1 }, { unique: true } )
but it does accept "name" : "Alex" and "name" : "alex"
is there a way to provide case sensitive and make sure there is only one alex in this case? Thanks!