Skip to content

Commit a88cf19

Browse files
Apply suggestions from code review
Co-authored-by: Jens Pryce-Åklundh <[email protected]>
1 parent 62c81b9 commit a88cf19

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

modules/ROOT/pages/deprecations-additions-removals-compatibility.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ MATCH p = ANY $param (:A)-[:R]->{0,10}(:B)
111111
MATCH SHORTEST $param GROUPS (:A)-[:R]->{0,10}(:B)
112112
----
113113

114-
a| Introduced the allowance of parameters to the xref:patterns/shortest-paths.adoc[SHORTEST and ANY path patterns].
114+
a| Parameters can now be used in xref:patterns/shortest-paths.adoc[`SHORTEST` and `ANY` path patterns].
115115

116116
a|
117117
label:functionality[]

modules/ROOT/pages/patterns/shortest-paths.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ CREATE (asc)-[:LINK {distance: 7.25}]->(cnm),
6464
(wof)-[:LINK {distance: 0.65}]->(wos)
6565
----
6666

67-
The paths matched by a xref:patterns/fixed-length-patterns.adoc#path-patterns[path pattern] can be restricted to only the shortest (by number of hops) by including the keyword `SHORTEST k`, where `k` is the number of paths to match, and can be either an `INTEGER` literal or a parameter which resolves to an `INTEGER`.
67+
The paths matched by a xref:patterns/fixed-length-patterns.adoc#path-patterns[path pattern] can be restricted to only the shortest (by number of hops) by including the keyword `SHORTEST k`, where `k` is the number of paths to match, and can be either an `INTEGER` literal or, as of Neo4j 2025.01, a parameter which resolves to an `INTEGER`.
6868
For example, the following example uses `SHORTEST 1` to return the length of the shortest path between `Worcester Shrub Hill` and `Bromsgrove`:
6969

7070
.Query

0 commit comments

Comments
 (0)