arangosh> db.test.ensureIndex({ type: "hash", fields: [ "a[*]" ] });
{
"deduplicate" : true,
"fields" : [
"a[*]"
],
"id" : "test/16034",
"isNewlyCreated" : true,
"selectivityEstimate" : 1,
"sparse" : false,
"type" : "hash",
"unique" : false,
"code" : 201
}
arangosh> db.test.save({ a : [ 1, 2 ] });
{
"_id" : "test/16037",
"_key" : "16037",
"_rev" : "_WcJRgWu--_"
}
arangosh> db.test.save({ a : [ 1, 3 ] });
{
"_id" : "test/16041",
"_key" : "16041",
"_rev" : "_WcJRgWy--_"
}
arangosh> db.test.save({ a : null });
{
"_id" : "test/16044",
"_key" : "16044",
"_rev" : "_WcJRgWy--B"
}