arangosh> db._create("vertex"); [ArangoCollection 98327, "vertex" (type document, status loaded)] arangosh> db._createEdgeCollection("relation"); [ArangoCollection 98333, "relation" (type edge, status loaded)] arangosh> myGraph.v1 = db.vertex.insert({ name : "vertex 1" }); { "_id" : "vertex/98340", "_key" : "98340", "_rev" : "_Y2g6n76--_" } arangosh> myGraph.v2 = db.vertex.insert({ name : "vertex 2" }); { "_id" : "vertex/98344", "_key" : "98344", "_rev" : "_Y2g6n76--B" } arangosh> myGraph.e1 = db.relation.insert(myGraph.v1, myGraph.v2, ........> { label : "knows"}); { "_id" : "relation/98347", "_key" : "98347", "_rev" : "_Y2g6n76--D" } arangosh> db._document(myGraph.e1); { "_key" : "98347", "_id" : "relation/98347", "_from" : "vertex/98340", "_to" : "vertex/98344", "_rev" : "_Y2g6n76--D", "label" : "knows" } arangosh> db.relation.outEdges(myGraph.v1._id); [ { "_key" : "98347", "_id" : "relation/98347", "_from" : "vertex/98340", "_to" : "vertex/98344", "_rev" : "_Y2g6n76--D", "label" : "knows" } ] arangosh> db.relation.outEdges(myGraph.v2._id); [ ]