arangosh> db.ids.ensureIndex({ type: "persistent", fields: [ "name.first", "name.last" ], unique: true }); { "deduplicate" : true, "fields" : [ "name.first", "name.last" ], "id" : "ids/16342", "isNewlyCreated" : true, "sparse" : false, "type" : "persistent", "unique" : true, "code" : 201 } arangosh> db.ids.save({ "name" : { "first" : "hans", "last": "hansen" }}); { "_id" : "ids/16345", "_key" : "16345", "_rev" : "_XG3zIha--_" } arangosh> db.ids.save({ "name" : { "first" : "jens", "last": "jensen" }}); { "_id" : "ids/16349", "_key" : "16349", "_rev" : "_XG3zIha--B" } arangosh> db.ids.save({ "name" : { "first" : "hans", "last": "jensen" }}); { "_id" : "ids/16352", "_key" : "16352", "_rev" : "_XG3zIha--D" } arangosh> db.ids.save({ "name" : { "first" : "hans", "last": "hansen" }}); [ArangoError 1210: unique constraint violated - in index 16342 of type persistent over ["name.first","name.last"]; conflicting key: 16345]