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