arangosh> db.ids.ensureIndex({ type: "skiplist", fields: [ "myId" ], unique: true }); { "fields" : [ "myId" ], "id" : "ids/348212808", "sparse" : false, "type" : "skiplist", "unique" : true, "isNewlyCreated" : true, "code" : 201 } arangosh> db.ids.save({ "myId": 123 }); { "_id" : "ids/348474952", "_rev" : "348474952", "_key" : "348474952" } arangosh> db.ids.save({ "myId": 456 }); { "_id" : "ids/348671560", "_rev" : "348671560", "_key" : "348671560" } arangosh> db.ids.save({ "myId": 789 }); { "_id" : "ids/348868168", "_rev" : "348868168", "_key" : "348868168" } arangosh> db.ids.save({ "myId": 123 }); [ArangoError 1210: cannot create document, unique constraint violated]