1
我想查詢n找到兩個距離。我怎樣才能與Arangodb獲得兩個距離?
這是我的AQL至今:
FOR start IN @@vertexCollection
FOR v, e, p IN 0..2 ANY 'circles/L' @@edgeCollection
FILTER p.vertices[2]._key == 'n'
RETURN {
source: start,
destination: v,
edges: p.edges,
vertices: p.vertices
}
https://github.com/arangodb/Cookbook/blob/master/recipes/AQL/MigratingEdgeFunctionsTo3.md – shaoyongyang