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