arangosh> db.test.ensureIndex({ type: "hash", fields: [ "a" ] });
{
"deduplicate" : true,
"fields" : [
"a"
],
"id" : "test/17990",
"isNewlyCreated" : true,
"selectivityEstimate" : 1,
"sparse" : false,
"type" : "hash",
"unique" : false,
"code" : 201
}
arangosh> db.test.save({ a : 1 });
{
"_id" : "test/17993",
"_key" : "17993",
"_rev" : "_WE2VtHG--_"
}
arangosh> db.test.save({ a : 1 });
{
"_id" : "test/17997",
"_key" : "17997",
"_rev" : "_WE2VtHO--_"
}
arangosh> db.test.save({ a : null });
{
"_id" : "test/18000",
"_key" : "18000",
"_rev" : "_WE2VtHO--B"
}