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