MongoDB - Unique Index
//
MongoDB allows us to specify a unique constraint on an index. These constraints will prevent an application from inserting documents that have duplicate values for the inserted fields.
Suppose we have a collection named things in a database stuff.
db.stuff.things("a":"apple");
A u
Read More about it from the following link : http://coding-guru.com/mongodb-unique-index/ posted by Maz
MongoDB - Unique Index
Tags:
0 comments: