arangosh> db._create("vertex"); [ArangoCollection 65396, "vertex" (type document, status loaded)] arangosh> db._createEdgeCollection("relation"); [ArangoCollection 65401, "relation" (type edge, status loaded)] arangosh> var myGraph = {}; arangosh> myGraph.v1 = db.vertex.insert({ name : "vertex 1" }); { "_id" : "vertex/65408", "_key" : "65408", "_rev" : "_ZXF5vue---" } arangosh> myGraph.v2 = db.vertex.insert({ name : "vertex 2" }); { "_id" : "vertex/65410", "_key" : "65410", "_rev" : "_ZXF5vue--A" } arangosh> myGraph.e1 = db.relation.insert(myGraph.v1, myGraph.v2, ........> { label : "knows"}); { "_id" : "relation/65412", "_key" : "65412", "_rev" : "_ZXF5vui---" } arangosh> db._document(myGraph.e1); { "_key" : "65412", "_id" : "relation/65412", "_from" : "vertex/65408", "_to" : "vertex/65410", "_rev" : "_ZXF5vui---", "label" : "knows" } arangosh> db.relation.edges(myGraph.e1._id); [ ]