Shortest Path Requires From or To Parameter
Erroneous Code Example
This error occurs when you use a shortest path operation without providing either afrom or to parameter.
Solution
Add afrom or to parameter to the shortest path operation.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
from or to parameter.
QUERY findPath() =>
path <- N<User>::ShortestPath()
RETURN path
N::User {
name: String,
}
E::Follows {
From: User,
To: User,
}
from or to parameter to the shortest path operation.
QUERY findPath(startId: ID, endId: ID) =>
path <- N<User>::ShortestPath(from: startId, to: endId)
RETURN path
N::User {
name: String,
}
E::Follows {
From: User,
To: User,
}
Was this page helpful?