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