mirror of
https://github.com/maciejpedzich/six-degs-of-f1.git
synced 2024-11-27 15:55:47 +01:00
Adjust shortest path query to use Memgraph's ASP function
This commit is contained in:
parent
36265e86b5
commit
5084dd49e9
@ -22,7 +22,7 @@ export async function getShortestPaths(source: string, dest: string) {
|
||||
WHERE
|
||||
(s.forename + " " + s.surname) = $source
|
||||
AND (d.forename + " " + d.surname) = $dest
|
||||
MATCH path = allShortestPaths((s)-[*..20]-(d))
|
||||
MATCH path = (s)-[:WAS_TEAMMATES_WITH *ALLSHORTEST (r, n | 1)]-(d)
|
||||
RETURN path;`,
|
||||
{ source, dest }
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user