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