arangosh> db.test.ensureIndex({ type: "hash", fields: [ "a[*]" ] });
{
"deduplicate" : true,
"fields" : [
"a[*]"
],
"id" : "test/18014",
"isNewlyCreated" : true,
"selectivityEstimate" : 1,
"sparse" : false,
"type" : "hash",
"unique" : false,
"code" : 201
}
arangosh> db.test.save({ a : [ 1, 2 ] });
{
"_id" : "test/18017",
"_key" : "18017",
"_rev" : "_WE2VtUO--_"
}
arangosh> db.test.save({ a : [ 1, 3 ] });
{
"_id" : "test/18021",
"_key" : "18021",
"_rev" : "_WE2VtUO--B"
}
arangosh> db.test.save({ a : null });
{
"_id" : "test/18024",
"_key" : "18024",
"_rev" : "_WE2VtUS--_"
}