arangosh> db.users.save({ name: "Gerhard" });
{
"_id" : "users/179",
"_key" : "179",
"_rev" : "_XUJyrAW--_"
}
arangosh> db.users.save({ name: "Helmut" });
{
"_id" : "users/183",
"_key" : "183",
"_rev" : "_XUJyrAa--_"
}
arangosh> db.users.save({ name: "Angela" });
{
"_id" : "users/186",
"_key" : "186",
"_rev" : "_XUJyrAa--B"
}
arangosh> db.users.all().toArray();
[
{
"_key" : "186",
"_id" : "users/186",
"_rev" : "_XUJyrAa--B",
"name" : "Angela"
},
{
"_key" : "183",
"_id" : "users/183",
"_rev" : "_XUJyrAa--_",
"name" : "Helmut"
},
{
"_key" : "179",
"_id" : "users/179",
"_rev" : "_XUJyrAW--_",
"name" : "Gerhard"
}
]
arangosh> db.users.byExample({ "_id" : "users/20" }).toArray();
[ ]
arangosh> db.users.byExample({ "name" : "Gerhard" }).toArray();
[
{
"_key" : "179",
"_id" : "users/179",
"_rev" : "_XUJyrAW--_",
"name" : "Gerhard"
}
]
arangosh> db.users.byExample({ "name" : "Helmut", "_id" : "users/15" }).toArray();
[ ]