arangosh> db.ids.ensureIndex({ type: "persistent", fields: [ "name.first", "name.last" ], unique: true }); { "deduplicate" : true, "fields" : [ "name.first", "name.last" ], "id" : "ids/18557", "isNewlyCreated" : true, "sparse" : false, "type" : "persistent", "unique" : true, "code" : 201 } arangosh> db.ids.save({ "name" : { "first" : "hans", "last": "hansen" }}); { "_id" : "ids/18560", "_key" : "18560", "_rev" : "_XGh_ZBK--_" } arangosh> db.ids.save({ "name" : { "first" : "jens", "last": "jensen" }}); { "_id" : "ids/18564", "_key" : "18564", "_rev" : "_XGh_ZBO--_" } arangosh> db.ids.save({ "name" : { "first" : "hans", "last": "jensen" }}); { "_id" : "ids/18567", "_key" : "18567", "_rev" : "_XGh_ZBS--_" } arangosh> db.ids.save({ "name" : { "first" : "hans", "last": "hansen" }}); [ArangoError 1210: unique constraint violated - in index 18557 of type persistent over ["name.first","name.last"]; conflicting key: 18560]