arangosh> db._create("vertex"); [ArangoCollection 98364, "vertex" (type document, status loaded)] arangosh> db._createEdgeCollection("relation"); [ArangoCollection 98370, "relation" (type edge, status loaded)] arangosh> myGraph.v1 = db.vertex.insert({ name : "vertex 1" }); { "_id" : "vertex/98377", "_key" : "98377", "_rev" : "_YQtDXFi--B" } arangosh> myGraph.v2 = db.vertex.insert({ name : "vertex 2" }); { "_id" : "vertex/98381", "_key" : "98381", "_rev" : "_YQtDXFm--_" } arangosh> myGraph.e1 = db.relation.insert(myGraph.v1, myGraph.v2, ........> { label : "knows"}); { "_id" : "relation/98384", "_key" : "98384", "_rev" : "_YQtDXFm--B" } arangosh> db._document(myGraph.e1); { "_key" : "98384", "_id" : "relation/98384", "_from" : "vertex/98377", "_to" : "vertex/98381", "_rev" : "_YQtDXFm--B", "label" : "knows" } arangosh> db.relation.inEdges(myGraph.v1._id); [ ] arangosh> db.relation.inEdges(myGraph.v2._id); [ { "_key" : "98384", "_id" : "relation/98384", "_from" : "vertex/98377", "_to" : "vertex/98381", "_rev" : "_YQtDXFm--B", "label" : "knows" } ]