1
0
Fork 0
arangodb/Documentation/Examples/ensureHashIndex.generated

32 lines
607 B
Plaintext

arangosh> db.test.ensureHashIndex("a");
{
"id" : "test/1177285515",
"type" : "hash",
"fields" : [
"a"
],
"selectivityEstimate" : 1,
"unique" : false,
"sparse" : false,
"isNewlyCreated" : true,
"code" : 201
}
arangosh> db.test.save({ a : 1 });
{
"_id" : "test/1177547659",
"_rev" : "1177547659",
"_key" : "1177547659"
}
arangosh> db.test.save({ a : 1 });
{
"_id" : "test/1177744267",
"_rev" : "1177744267",
"_key" : "1177744267"
}
arangosh> db.test.save({ a : null });
{
"_id" : "test/1178006411",
"_rev" : "1178006411",
"_key" : "1178006411"
}