arangosh> db.test.ensureIndex({ type: "hash", fields: [ "a" ] }); { "deduplicate" : true, "fields" : [ "a" ], "id" : "test/17912", "isNewlyCreated" : true, "selectivityEstimate" : 1, "sparse" : false, "type" : "hash", "unique" : false, "code" : 201 } arangosh> db.test.save({ a : 1 }); { "_id" : "test/17915", "_key" : "17915", "_rev" : "_WBDpD-y--_" } arangosh> db.test.save({ a : 1 }); { "_id" : "test/17919", "_key" : "17919", "_rev" : "_WBDpD-2--_" } arangosh> db.test.save({ a : null }); { "_id" : "test/17922", "_key" : "17922", "_rev" : "_WBDpD-2--B" }