@@ -22,7 +22,8 @@ order to avoid problems with performance or results.
22
22
1.4. [ Filter with node properties] ( #14-filter-with-node-properties ) <br />
23
23
1.5. [ Filter with relationship properties] ( #15-filter-with-relationship-properties ) <br />
24
24
1.6. [ Check if property is not null] ( #16-check-if-property-is-not-null ) <br />
25
- 1.7. [ Filter with pattern expressions] ( #17-filter-with-pattern-expressions ) <br />
25
+ 1.7. [ Filter with EXISTS expressions] ( #17-filter-with-exists-expressions ) <br />
26
+ 1.8. [ Filter with pattern expressions] ( #18-filter-with-pattern-expressions ) <br />
26
27
2 . [ String matching] ( #2-string-matching ) <br />
27
28
3 . [ Regular Expressions] ( #3-regular-expressions )
28
29
4 . [ Existential subqueries] ( #4-existential-subqueries ) <br />
@@ -166,9 +167,9 @@ Output:
166
167
+----------------+----------------+
167
168
```
168
169
169
- ### 1.7. Filter with pattern expressions
170
+ ### 1.7. Filter with EXISTS expressions
170
171
171
- Currently, we support pattern expression filters with the ` exists(pattern) `
172
+ Currently, we support ` EXISTS ` expression filters with the ` exists(pattern) `
172
173
function, which can perform filters based on neighboring entities:
173
174
174
175
``` cypher
@@ -191,6 +192,30 @@ Output:
191
192
+----------------+
192
193
```
193
194
195
+ ### 1.8. Filter with pattern expressions
196
+
197
+ Currently, we support pattern expression filters inside the ` WHERE ` clause.
198
+
199
+ ``` cypher
200
+ MATCH (p:Person)
201
+ WHERE (p)-[:LIVING_IN]->(:Country {name: 'Germany'})
202
+ RETURN p.name
203
+ ORDER BY p.name;
204
+ ```
205
+
206
+ Output:
207
+
208
+ ``` nocopy
209
+ +----------------+
210
+ | c.name |
211
+ +----------------+
212
+ | Anna |
213
+ | John |
214
+ +----------------+
215
+ ```
216
+
217
+ The pattern expressions can't contain any additional symbols that are not introduced in the previously matched symbols.
218
+
194
219
## 2. String matching
195
220
196
221
Apart from comparison and concatenation operators Cypher provides special
0 commit comments