arangosh> db.ids.ensureIndex({ type: "skiplist", fields: [ "myId" ], unique: true }); { "id" : "ids/15287", "type" : "skiplist", "fields" : [ "myId" ], "unique" : true, "sparse" : false, "isNewlyCreated" : true, "code" : 201 } arangosh> db.ids.save({ "myId": 123 }); { "_id" : "ids/15290", "_key" : "15290", "_rev" : "_U-_q22----" } arangosh> db.ids.save({ "myId": 456 }); { "_id" : "ids/15294", "_key" : "15294", "_rev" : "_U-_q22C---" } arangosh> db.ids.save({ "myId": 789 }); { "_id" : "ids/15297", "_key" : "15297", "_rev" : "_U-_q22C--_" } arangosh> db.ids.save({ "myId": 123 }); [ArangoError 1210: cannot create document, unique constraint violated]