arangosh> db._create("vertex"); [ArangoCollection 65419, "vertex" (type document, status loaded)] arangosh> db._createEdgeCollection("relation"); [ArangoCollection 65424, "relation" (type edge, status loaded)] arangosh> myGraph.v1 = db.vertex.insert({ name : "vertex 1" }); { "_id" : "vertex/65431", "_key" : "65431", "_rev" : "_ZXF5vu2---" } arangosh> myGraph.v2 = db.vertex.insert({ name : "vertex 2" }); { "_id" : "vertex/65433", "_key" : "65433", "_rev" : "_ZXF5vu2--A" } arangosh> myGraph.e1 = db.relation.insert(myGraph.v1, myGraph.v2, ........> { label : "knows"}); { "_id" : "relation/65435", "_key" : "65435", "_rev" : "_ZXF5vu2--C" } arangosh> db._document(myGraph.e1); { "_key" : "65435", "_id" : "relation/65435", "_from" : "vertex/65431", "_to" : "vertex/65433", "_rev" : "_ZXF5vu2--C", "label" : "knows" } arangosh> db.relation.inEdges(myGraph.v1._id); [ ] arangosh> db.relation.inEdges(myGraph.v2._id); [ { "_key" : "65435", "_id" : "relation/65435", "_from" : "vertex/65431", "_to" : "vertex/65433", "_rev" : "_ZXF5vu2--C", "label" : "knows" } ]