arangosh> db._create("vertex"); [ArangoCollection 7382, "vertex" (type document, status loaded)] arangosh> db._createEdgeCollection("relation"); [ArangoCollection 7384, "relation" (type edge, status loaded)] arangosh> var myGraph = {}; arangosh> myGraph.v1 = db.vertex.insert({ name : "vertex 1" }); { "_id" : "vertex/7387", "_key" : "7387", "_rev" : "_VOyw1LO---" } arangosh> myGraph.v2 = db.vertex.insert({ name : "vertex 2" }); { "_id" : "vertex/7391", "_key" : "7391", "_rev" : "_VOyw1LO--_" } arangosh> myGraph.e1 = db.relation.insert(myGraph.v1, myGraph.v2, ........> { label : "knows"}); { "_id" : "relation/7394", "_key" : "7394", "_rev" : "_VOyw1LS---" } arangosh> db._document(myGraph.e1); { "_key" : "7394", "_id" : "relation/7394", "_from" : "vertex/7387", "_to" : "vertex/7391", "_rev" : "_VOyw1LS---", "label" : "knows" } arangosh> db.relation.edges(myGraph.e1._id); [ ]