arangosh> db.test.ensureIndex({ type: "hash", fields: [ "a" ] });
{
"deduplicate" : true,
"fields" : [
"a"
],
"id" : "test/16227",
"isNewlyCreated" : true,
"selectivityEstimate" : 1,
"sparse" : false,
"type" : "hash",
"unique" : false,
"code" : 201
}
arangosh> db.test.save({ a : 1 });
{
"_id" : "test/16230",
"_key" : "16230",
"_rev" : "_XG3zIUu--_"
}
arangosh> db.test.save({ a : 1 });
{
"_id" : "test/16234",
"_key" : "16234",
"_rev" : "_XG3zIUu--B"
}
arangosh> db.test.save({ a : null });
{
"_id" : "test/16237",
"_key" : "16237",
"_rev" : "_XG3zIUu--D"
}