I want to set one of my fields as primary key. I am using MongoDB as my NoSQL.
The other way is to create Indexes for your collection and make sure that they are unique.
Indexes
You can find more on the following link
I actually find this pretty simple and easy to implement.