示例:
顶点表: insert { _key:'u1', name:'one' } in v_userid insert { _key:'u2', name:'two' } in v_userid insert { _key:'p1', name:'px' } in v_phone insert { _key:'p2', name:'py' } in v_phone 边表: insert { _key:'u1-p2', u:'u1', p:'p2' } in e_userid_phone 图查询: for v,e,p in 1..2 outbound ' v_userid/u1' graph 'graph1' return p
说明:
基于图操作的语法:
FOR vertex[, edge[, path]] IN [min[..max]] OUTBOUND|INBOUND|ANY startVertex GRAPH graphName [OPTIONS options]
基于集合操作的预发:
FOR vertex[, edge[, path]] IN [min[..max]] OUTBOUND|INBOUND|ANY startVertex edgeCollection1, ..., edgeCollectionN [OPTIONS options]
参考:
https://docs.arangodb.com/3.2/AQL/Graphs/