Question

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.

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top