Skip to content

Commit e793a1f

Browse files
authored
Fix the example of shortest path with an unbounded pattern (#193)
[Trello card](https://trello.com/c/L4hfM5CH/529-the-status-notification-code-example-shows-query-with-error)
1 parent 884cffc commit e793a1f

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

modules/ROOT/pages/notifications/all-notifications.adoc

+12-4
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,9 @@ Query::
151151
+
152152
[source, cypher, role="noplay"]
153153
----
154-
MATCH p=shortestPath((n)-[*]->(m)) RETURN p
154+
MATCH p=shortestPath((n)-[*]->(m))
155+
WHERE n <> m
156+
RETURN p
155157
----
156158

157159
Description of the returned code::
@@ -164,7 +166,9 @@ Consider adding an upper limit.
164166
+
165167
[source, cypher, role="noplay"]
166168
----
167-
MATCH p=shortestPath((n)-[*..8]->(m)) RETURN p
169+
MATCH p=shortestPath((n)-[*..8]->(m))
170+
WHERE n <> m
171+
RETURN p
168172
----
169173
======
170174
[.include-with-GQLSTATUS-code]
@@ -174,7 +178,9 @@ Query::
174178
+
175179
[source, cypher, role="noplay"]
176180
----
177-
MATCH p=shortestPath((n)-[*]->(m)) RETURN p
181+
MATCH p=shortestPath((n)-[*]->(m))
182+
WHERE n <> m
183+
RETURN p
178184
----
179185

180186
Returned GQLSTATUS code::
@@ -192,7 +198,9 @@ Consider adding an upper limit.
192198
+
193199
[source, cypher, role="noplay"]
194200
----
195-
MATCH p=shortestPath((n)-[*..8]->(m)) RETURN p
201+
MATCH p=shortestPath((n)-[*..8]->(m))
202+
WHERE n <> m
203+
RETURN p
196204
----
197205
======
198206
=====

0 commit comments

Comments
 (0)