mirror of
https://github.com/maciejpedzich/six-degs-of-f1.git
synced 2024-11-27 15:55:47 +01:00
End all queries with semicolons
This commit is contained in:
parent
7eba90e505
commit
36265e86b5
@ -7,7 +7,7 @@ export async function getDriverNames() {
|
|||||||
(d.forename + " " + d.surname) AS fullname
|
(d.forename + " " + d.surname) AS fullname
|
||||||
ORDER BY
|
ORDER BY
|
||||||
toUpper(d.surname),
|
toUpper(d.surname),
|
||||||
toUpper(d.forename)`
|
toUpper(d.forename);`
|
||||||
);
|
);
|
||||||
|
|
||||||
const driverNames = records.map((rec) => rec.get('fullname') as string);
|
const driverNames = records.map((rec) => rec.get('fullname') as string);
|
||||||
|
@ -23,7 +23,7 @@ export async function getShortestPaths(source: string, dest: string) {
|
|||||||
(s.forename + " " + s.surname) = $source
|
(s.forename + " " + s.surname) = $source
|
||||||
AND (d.forename + " " + d.surname) = $dest
|
AND (d.forename + " " + d.surname) = $dest
|
||||||
MATCH path = allShortestPaths((s)-[*..20]-(d))
|
MATCH path = allShortestPaths((s)-[*..20]-(d))
|
||||||
RETURN path`,
|
RETURN path;`,
|
||||||
{ source, dest }
|
{ source, dest }
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user