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