arangosh> db._create("vertex"); [ArangoCollection 109727304, "vertex" (type document, status loaded)] arangosh> db._createEdgeCollection("relation"); [ArangoCollection 109858376, "relation" (type edge, status loaded)] arangosh> myGraph.v1 = db.vertex.insert({ name : "vertex 1" }); { "_id" : "vertex/110186056", "_rev" : "110186056", "_key" : "110186056" } arangosh> myGraph.v2 = db.vertex.insert({ name : "vertex 2" }); { "_id" : "vertex/110382664", "_rev" : "110382664", "_key" : "110382664" } arangosh> myGraph.e1 = db.relation.insert(myGraph.v1, myGraph.v2, ........> { label : "knows"}); { "_id" : "relation/110710344", "_rev" : "110710344", "_key" : "110710344" } arangosh> db._document(myGraph.e1); { "label" : "knows", "_from" : "vertex/110186056", "_id" : "relation/110710344", "_key" : "110710344", "_rev" : "110710344", "_to" : "vertex/110382664" } arangosh> db.relation.inEdges(myGraph.v1._id); [ ] arangosh> db.relation.inEdges(myGraph.v2._id); [ { "label" : "knows", "_id" : "relation/110710344", "_rev" : "110710344", "_key" : "110710344", "_from" : "vertex/110186056", "_to" : "vertex/110382664" } ]