arangosh> db.test.ensureIndex({ type: "hash", fields: [ "a" ] });
{
"deduplicate" : true,
"fields" : [
"a"
],
"id" : "test/111604",
"isNewlyCreated" : true,
"selectivityEstimate" : 1,
"sparse" : false,
"type" : "hash",
"unique" : false,
"code" : 201
}
arangosh> db.test.save({ a : 1 });
{
"_id" : "test/111607",
"_key" : "111607",
"_rev" : "_YYClXRe--_"
}
arangosh> db.test.save({ a : 1 });
{
"_id" : "test/111611",
"_key" : "111611",
"_rev" : "_YYClXRe--B"
}
arangosh> db.test.save({ a : null });
{
"_id" : "test/111614",
"_key" : "111614",
"_rev" : "_YYClXRi--_"
}