arangosh> db._create("vertex"); [ArangoCollection 7481, "vertex" (type document, status loaded)] arangosh> db._createEdgeCollection("relation"); [ArangoCollection 7484, "relation" (type edge, status loaded)] arangosh> myGraph.v1 = db.vertex.insert({ name : "vertex 1" }); { "_id" : "vertex/7488", "_key" : "7488", "_rev" : "_XGh-XqO--_" } arangosh> myGraph.v2 = db.vertex.insert({ name : "vertex 2" }); { "_id" : "vertex/7492", "_key" : "7492", "_rev" : "_XGh-XqS--_" } arangosh> myGraph.e1 = db.relation.insert(myGraph.v1, myGraph.v2, ........> { label : "knows"}); { "_id" : "relation/7495", "_key" : "7495", "_rev" : "_XGh-Xqa--_" } arangosh> db._document(myGraph.e1); { "_key" : "7495", "_id" : "relation/7495", "_from" : "vertex/7488", "_to" : "vertex/7492", "_rev" : "_XGh-Xqa--_", "label" : "knows" } arangosh> db.relation.inEdges(myGraph.v1._id); [ ] arangosh> db.relation.inEdges(myGraph.v2._id); [ { "_key" : "7495", "_id" : "relation/7495", "_from" : "vertex/7488", "_to" : "vertex/7492", "_rev" : "_XGh-Xqa--_", "label" : "knows" } ]