문제

I'm really new to arangodb (and graph databases). I'm trying to use the sortest_path function:

FOR p in SHORTEST_PATH(imdb_vertices, imdb_edges, "imdb_vertices/349","imdb_vertices/1931", "any", { paths: true})
RETURN p

But the shells returns:

usage of unknown function 'SHORTEST_PATH()'

In the docs I can't find a working example of use of this function.

도움이 되었습니까?

해결책

First of all, the SHORTEST_PATH function has been added in ArangoDB 1.4.11. Can you make sure you are using an ArangoDB server version as least as high as that?

Second, a few examples for SHORTEST_PATH should be here: https://www.arangodb.org/manuals/1/Aql.html#AqlFunctionsGraph

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top