arangosh> db.ids.ensureIndex({ type: "skiplist", fields: [ "myId" ], unique: true }); { "id" : "ids/15466", "type" : "skiplist", "fields" : [ "myId" ], "unique" : true, "sparse" : false, "isNewlyCreated" : true, "code" : 201 } arangosh> db.ids.save({ "myId": 123 }); { "_id" : "ids/15469", "_key" : "15469", "_rev" : "_V_qEjUG---" } arangosh> db.ids.save({ "myId": 456 }); { "_id" : "ids/15473", "_key" : "15473", "_rev" : "_V_qEjUG--_" } arangosh> db.ids.save({ "myId": 789 }); { "_id" : "ids/15476", "_key" : "15476", "_rev" : "_V_qEjUK---" } arangosh> db.ids.save({ "myId": 123 }); [ArangoError 1210: cannot create document, unique constraint violated]