arangosh> db.test.ensureIndex({ type: "hash", fields: [ "a" ] });
{
"deduplicate" : true,
"fields" : [
"a"
],
"id" : "test/18078",
"isNewlyCreated" : true,
"selectivityEstimate" : 1,
"sparse" : false,
"type" : "hash",
"unique" : false,
"code" : 201
}
arangosh> db.test.save({ a : 1 });
{
"_id" : "test/18081",
"_key" : "18081",
"_rev" : "_WgE9QCC--_"
}
arangosh> db.test.save({ a : 1 });
{
"_id" : "test/18085",
"_key" : "18085",
"_rev" : "_WgE9QCG--_"
}
arangosh> db.test.save({ a : null });
{
"_id" : "test/18088",
"_key" : "18088",
"_rev" : "_WgE9QCK--_"
}