Wednesday, 7 December 2016

MongoDB - Unique Index

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


Previous Post
Next Post

About Author

0 comments: