arangosh> db.test.ensureIndex({ type: "hash", fields: [ "a" ] });
{
"deduplicate" : true,
"fields" : [
"a"
],
"id" : "test/110184",
"isNewlyCreated" : true,
"selectivityEstimate" : 1,
"sparse" : false,
"type" : "hash",
"unique" : false,
"code" : 201
}
arangosh> db.test.save({ a : 1 });
{
"_id" : "test/110187",
"_key" : "110187",
"_rev" : "_XWq565q--_"
}
arangosh> db.test.save({ a : 1 });
{
"_id" : "test/110191",
"_key" : "110191",
"_rev" : "_XWq565u--_"
}
arangosh> db.test.save({ a : null });
{
"_id" : "test/110194",
"_key" : "110194",
"_rev" : "_XWq565u--B"
}