arangosh> var examples = require("@arangodb/graph-examples/example-graph.js");
arangosh> var g = examples.loadGraph("knows_graph");
arangosh> db.persons.toArray()
[
{
"_key" : "bob",
"_id" : "persons/bob",
"_rev" : "_YOn1n72--B",
"name" : "Bob"
},
{
"_key" : "charlie",
"_id" : "persons/charlie",
"_rev" : "_YOn1n72--D",
"name" : "Charlie"
},
{
"_key" : "dave",
"_id" : "persons/dave",
"_rev" : "_YOn1n72--F",
"name" : "Dave"
},
{
"_key" : "eve",
"_id" : "persons/eve",
"_rev" : "_YOn1n72--H",
"name" : "Eve"
},
{
"_key" : "alice",
"_id" : "persons/alice",
"_rev" : "_YOn1n72--_",
"name" : "Alice"
}
]
arangosh> db.knows.toArray();
[
{
"_key" : "131059",
"_id" : "knows/131059",
"_from" : "persons/alice",
"_to" : "persons/bob",
"_rev" : "_YOn1n76--_",
"vertex" : "alice"
},
{
"_key" : "131069",
"_id" : "knows/131069",
"_from" : "persons/eve",
"_to" : "persons/alice",
"_rev" : "_YOn1n76--F",
"vertex" : "eve"
},
{
"_key" : "131072",
"_id" : "knows/131072",
"_from" : "persons/eve",
"_to" : "persons/bob",
"_rev" : "_YOn1n76--H",
"vertex" : "eve"
},
{
"_key" : "131063",
"_id" : "knows/131063",
"_from" : "persons/bob",
"_to" : "persons/charlie",
"_rev" : "_YOn1n76--B",
"vertex" : "bob"
},
{
"_key" : "131066",
"_id" : "knows/131066",
"_from" : "persons/bob",
"_to" : "persons/dave",
"_rev" : "_YOn1n76--D",
"vertex" : "bob"
}
]
arangosh> examples.dropGraph("knows_graph");