arangosh> db._create("vertex"); [ArangoCollection 65388, "vertex" (type document, status loaded)] arangosh> db._createEdgeCollection("relation"); [ArangoCollection 65393, "relation" (type edge, status loaded)] arangosh> var myGraph = {}; arangosh> myGraph.v1 = db.vertex.insert({ name : "vertex 1" }); { "_id" : "vertex/65400", "_key" : "65400", "_rev" : "_ZG8LcPW--A" } arangosh> myGraph.v2 = db.vertex.insert({ name : "vertex 2" }); { "_id" : "vertex/65402", "_key" : "65402", "_rev" : "_ZG8LcPa---" } arangosh> myGraph.e1 = db.relation.insert(myGraph.v1, myGraph.v2, ........> { label : "knows"}); { "_id" : "relation/65404", "_key" : "65404", "_rev" : "_ZG8LcPa--A" } arangosh> db._document(myGraph.e1); { "_key" : "65404", "_id" : "relation/65404", "_from" : "vertex/65400", "_to" : "vertex/65402", "_rev" : "_ZG8LcPa--A", "label" : "knows" } arangosh> db.relation.edges(myGraph.e1._id); [ ]