arangosh> db._create("vertex"); [ArangoCollection 7456, "vertex" (type document, status loaded)] arangosh> db._createEdgeCollection("relation"); [ArangoCollection 7459, "relation" (type edge, status loaded)] arangosh> var myGraph = {}; arangosh> myGraph.v1 = db.vertex.insert({ name : "vertex 1" }); { "_id" : "vertex/7463", "_key" : "7463", "_rev" : "_WpTAnJy--_" } arangosh> myGraph.v2 = db.vertex.insert({ name : "vertex 2" }); { "_id" : "vertex/7467", "_key" : "7467", "_rev" : "_WpTAnJ2--_" } arangosh> myGraph.e1 = db.relation.insert(myGraph.v1, myGraph.v2, ........> { label : "knows"}); { "_id" : "relation/7470", "_key" : "7470", "_rev" : "_WpTAnJ2--B" } arangosh> db._document(myGraph.e1); { "_key" : "7470", "_id" : "relation/7470", "_from" : "vertex/7463", "_to" : "vertex/7467", "_rev" : "_WpTAnJ2--B", "label" : "knows" } arangosh> db.relation.edges(myGraph.e1._id); [ ]