1
0
Fork 0
arangodb/Documentation/Examples/002_collectionAllNext.gener...

46 lines
891 B
Plaintext

arangosh> db.five.save({ name : "one" });
{
"_id" : "five/24008092",
"_rev" : "24008092",
"_key" : "24008092"
}
arangosh> db.five.save({ name : "two" });
{
"_id" : "five/24204700",
"_rev" : "24204700",
"_key" : "24204700"
}
arangosh> db.five.save({ name : "three" });
{
"_id" : "five/24401308",
"_rev" : "24401308",
"_key" : "24401308"
}
arangosh> db.five.save({ name : "four" });
{
"_id" : "five/24597916",
"_rev" : "24597916",
"_key" : "24597916"
}
arangosh> db.five.save({ name : "five" });
{
"_id" : "five/24794524",
"_rev" : "24794524",
"_key" : "24794524"
}
arangosh> db.five.all().limit(2).toArray();
[
{
"name" : "three",
"_id" : "five/24401308",
"_rev" : "24401308",
"_key" : "24401308"
},
{
"name" : "four",
"_id" : "five/24597916",
"_rev" : "24597916",
"_key" : "24597916"
}
]