You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -170,8 +170,8 @@ MATCH (p:Person)-[:LIKES]-(t:Technology)
170
170
An undirected relationship does not mean that it doesn't have a direction, but that it can be traversed in *either* direction.
171
171
While you can't *create* relationships without a direction, you can *query* them undirected (in the example, using the link:{docs-home}/cypher-manual/current/clauses/match/[`MATCH`] clause).
172
172
173
-
Using undirected relationships in queries is particularly useful when you don't know the direction, since Cypher won't return anything if you write a query with the wrong direction.
174
-
Cypher will therefore retrieve *all* nodes connected by the specified relationship type, regardless of direction.
173
+
Since Cypher won't return anything if you write a query with the wrong direction, you can use undirected relationships in queries when you don't know the direction.
174
+
This way, Cypher will retrieve *all* nodes connected by the specified relationship type, regardless of direction.
175
175
176
176
[NOTE]
177
177
====
@@ -290,7 +290,7 @@ RETURN sally,r,t
290
290
==== Pattern variables
291
291
292
292
In the same way as nodes and relationships, you can also use variables for patterns.
293
-
Considering the previous example, you can turn contain the whole pattern (`(Sally)-[:LIKES]->(Technology)`) inside a pattern by creating a variable (`p`) for it all:
293
+
Considering the previous example, you can turn the whole pattern (`(Sally)-[:LIKES]->(Technology)`) into a variable (`p`):
0 commit comments