We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d25c1ba commit 946efcaCopy full SHA for 946efca
modules/ROOT/pages/patterns/reference.adoc
@@ -1415,7 +1415,7 @@ shortestPath((:A)-->+(:B))
1415
[[shortest-functions-rules-path-pattern-length]]
1416
==== Path pattern length
1417
1418
-There must be exactly one relationship pattern in the path pattern.
+There must be exactly one relationship pattern in the path pattern, and the lower bound should be 0 or 1.
1419
1420
.Allowed
1421
[source]
@@ -1428,6 +1428,8 @@ shortestPath((a)-[:R*1..5]-(b))
1428
----
1429
shortestPath((a)-[:R*1..5]-(b)-->(:X))
1430
1431
+shortestPath((a)-[:R*2..5]-(b))
1432
+
1433
shortestPath((:A))
1434
1435
allShortestPaths((a:A)-[:S*]->(:B), (a)-[:R*1..3]->(:C))
0 commit comments