arangosh> db.test.ensureIndex({ type: "hash", fields: [ "a[*]" ] });
{
"deduplicate" : true,
"fields" : [
"a[*]"
],
"id" : "test/111390",
"isNewlyCreated" : true,
"selectivityEstimate" : 1,
"sparse" : false,
"type" : "hash",
"unique" : false,
"code" : 201
}
arangosh> db.test.save({ a : [ 1, 2 ] });
{
"_id" : "test/111393",
"_key" : "111393",
"_rev" : "_Y2g68rK--_"
}
arangosh> db.test.save({ a : [ 1, 3 ] });
{
"_id" : "test/111397",
"_key" : "111397",
"_rev" : "_Y2g68rK--B"
}
arangosh> db.test.save({ a : null });
{
"_id" : "test/111400",
"_key" : "111400",
"_rev" : "_Y2g68rK--D"
}