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