arangosh> db.test.ensureIndex({ type: "hash", fields: [ "a" ] });
{
"deduplicate" : true,
"fields" : [
"a"
],
"id" : "test/18442",
"isNewlyCreated" : true,
"selectivityEstimate" : 1,
"sparse" : false,
"type" : "hash",
"unique" : false,
"code" : 201
}
arangosh> db.test.save({ a : 1 });
{
"_id" : "test/18445",
"_key" : "18445",
"_rev" : "_XGh_YAO--_"
}
arangosh> db.test.save({ a : 1 });
{
"_id" : "test/18449",
"_key" : "18449",
"_rev" : "_XGh_YAS--_"
}
arangosh> db.test.save({ a : null });
{
"_id" : "test/18452",
"_key" : "18452",
"_rev" : "_XGh_YAa--_"
}