arangosh> db.test.ensureIndex({ type: "hash", fields: [ "a" ] });
{
"id" : "test/15088",
"type" : "hash",
"fields" : [
"a"
],
"selectivityEstimate" : 1,
"unique" : false,
"sparse" : false,
"isNewlyCreated" : true,
"code" : 201
}
arangosh> db.test.save({ a : 1 });
{
"_id" : "test/15091",
"_key" : "15091",
"_rev" : "_U-_q2tG---"
}
arangosh> db.test.save({ a : 1 });
{
"_id" : "test/15095",
"_key" : "15095",
"_rev" : "_U-_q2tG--_"
}
arangosh> db.test.save({ a : null });
{
"_id" : "test/15098",
"_key" : "15098",
"_rev" : "_U-_q2tK---"
}