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