arangosh> db.test.ensureIndex({ type: "hash", fields: [ "a" ] }); { "deduplicate" : true, "fields" : [ "a" ], "id" : "test/16241", "isNewlyCreated" : true, "selectivityEstimate" : 1, "sparse" : false, "type" : "hash", "unique" : false, "code" : 201 } arangosh> db.test.save({ a : 1 }); { "_id" : "test/16244", "_key" : "16244", "_rev" : "_W0jzAVy--_" } arangosh> db.test.save({ a : 1 }); { "_id" : "test/16248", "_key" : "16248", "_rev" : "_W0jzAV2--_" } arangosh> db.test.save({ a : null }); { "_id" : "test/16251", "_key" : "16251", "_rev" : "_W0jzAV2--B" }