Press "Enter" to skip to content

Posts published in “MongoDB”

Unique Indexes di MongoDb

0

Membuat Index Unique   Single Field db.collection.createIndex( <key and index type specification>, { unique: true } ) Contoh db.members.createIndex( { "user_id": 1 }, { unique: true } ) Drop Index…