arangosh> db.ids.ensureIndex({ type: "persistent", fields: [ "name.first", "name.last" ], unique: true }); { "deduplicate" : true, "fields" : [ "name.first", "name.last" ], "id" : "ids/15457", "isNewlyCreated" : true, "sparse" : false, "type" : "persistent", "unique" : true, "code" : 201 } arangosh> db.ids.save({ "name" : { "first" : "hans", "last": "hansen" }}); { "_id" : "ids/15460", "_key" : "15460", "_rev" : "_VOyxoOO---" } arangosh> db.ids.save({ "name" : { "first" : "jens", "last": "jensen" }}); { "_id" : "ids/15464", "_key" : "15464", "_rev" : "_VOyxoOS---" } arangosh> db.ids.save({ "name" : { "first" : "hans", "last": "jensen" }}); { "_id" : "ids/15467", "_key" : "15467", "_rev" : "_VOyxoOS--_" } arangosh> db.ids.save({ "name" : { "first" : "hans", "last": "hansen" }}); [ArangoError 1210: unique constraint violated - in index 15457 of type persistent over ["name.first","name.last"]]