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