arangosh> db.test.ensureIndex({ type: "hash", fields: [ "a", "b.c" ], unique: true }); { "deduplicate" : true, "fields" : [ "a", "b.c" ], "id" : "test/18044", "isNewlyCreated" : true, "selectivityEstimate" : 1, "sparse" : false, "type" : "hash", "unique" : true, "code" : 201 } arangosh> db.test.save({ a : 1, b : { c : 1 } }); { "_id" : "test/18047", "_key" : "18047", "_rev" : "_WBDpD5W--_" } arangosh> db.test.save({ a : 1, b : { c : 1 } }); [ArangoError 1210: unique constraint violated - in index 18044 of type hash over ["a","b.c"]; conflicting key: 18047] arangosh> db.test.save({ a : 1, b : { c : null } }); { "_id" : "test/18053", "_key" : "18053", "_rev" : "_WBDpD5e--_" } arangosh> db.test.save({ a : 1 }); [ArangoError 1210: unique constraint violated - in index 18044 of type hash over ["a","b.c"]; conflicting key: 18053]