arangosh> db._create("vertex"); [ArangoCollection 108351048, "vertex" (type document, status loaded)] arangosh> db._createEdgeCollection("relation"); [ArangoCollection 108482120, "relation" (type edge, status loaded)] arangosh> myGraph.v1 = db.vertex.insert({ name : "vertex 1" }); { "_id" : "vertex/108809800", "_rev" : "108809800", "_key" : "108809800" } arangosh> myGraph.v2 = db.vertex.insert({ name : "vertex 2" }); { "_id" : "vertex/109006408", "_rev" : "109006408", "_key" : "109006408" } arangosh> myGraph.e1 = db.relation.insert(myGraph.v1, myGraph.v2, ........> { label : "knows"}); { "_id" : "relation/109334088", "_rev" : "109334088", "_key" : "109334088" } arangosh> db._document(myGraph.e1); { "label" : "knows", "_from" : "vertex/108809800", "_id" : "relation/109334088", "_key" : "109334088", "_rev" : "109334088", "_to" : "vertex/109006408" } arangosh> db.relation.edges(myGraph.e1._id); [ ]