arangosh> db.test.ensureIndex({ type: "hash", fields: [ "a" ] });
{
"deduplicate" : true,
"fields" : [
"a"
],
"id" : "test/110975",
"isNewlyCreated" : true,
"selectivityEstimate" : 1,
"sparse" : false,
"type" : "hash",
"unique" : false,
"code" : 201
}
arangosh> db.test.save({ a : 1 });
{
"_id" : "test/110978",
"_key" : "110978",
"_rev" : "_YOn1fzu--_"
}
arangosh> db.test.save({ a : 1 });
{
"_id" : "test/110982",
"_key" : "110982",
"_rev" : "_YOn1fzu--B"
}
arangosh> db.test.save({ a : null });
{
"_id" : "test/110985",
"_key" : "110985",
"_rev" : "_YOn1fzy--_"
}