arangosh> db.test.ensureIndex({ type: "hash", fields: [ "a[*]" ] });
{
"deduplicate" : true,
"fields" : [
"a[*]"
],
"id" : "test/110136",
"isNewlyCreated" : true,
"selectivityEstimate" : 1,
"sparse" : false,
"type" : "hash",
"unique" : false,
"code" : 201
}
arangosh> db.test.save({ a : [ 1, 2 ] });
{
"_id" : "test/110139",
"_key" : "110139",
"_rev" : "_XUJzKnm--_"
}
arangosh> db.test.save({ a : [ 1, 3 ] });
{
"_id" : "test/110143",
"_key" : "110143",
"_rev" : "_XUJzKnq--_"
}
arangosh> db.test.save({ a : null });
{
"_id" : "test/110146",
"_key" : "110146",
"_rev" : "_XUJzKnq--B"
}