arangosh> db.test.ensureIndex({ type: "hash", fields: [ "a" ] });
{
"deduplicate" : true,
"fields" : [
"a"
],
"id" : "test/111366",
"isNewlyCreated" : true,
"selectivityEstimate" : 1,
"sparse" : false,
"type" : "hash",
"unique" : false,
"code" : 201
}
arangosh> db.test.save({ a : 1 });
{
"_id" : "test/111369",
"_key" : "111369",
"_rev" : "_Y2g68pC--_"
}
arangosh> db.test.save({ a : 1 });
{
"_id" : "test/111373",
"_key" : "111373",
"_rev" : "_Y2g68pG--_"
}
arangosh> db.test.save({ a : null });
{
"_id" : "test/111376",
"_key" : "111376",
"_rev" : "_Y2g68pG--B"
}