Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

mongodb create index unique

db.members.createIndex( { "user_id": 1 }, { unique: true } )
Source by www.mongodb.com #
 
PREVIOUS NEXT
Tagged: #mongodb #create #index #unique
ADD COMMENT
Topic
Name
6+6 =