Skip to content

Commit 79d5abf

Browse files
committed
Add example to changelog
1 parent 117a320 commit 79d5abf

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.changeset/clean-items-greet.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,21 @@
33
---
44

55
Remove second parameter of `ListComprehension` in favor of `.in`
6+
7+
_Before_
8+
9+
```js
10+
new Cypher.ListComprehension(variable, new Cypher.Literal([1, 2]));
11+
```
12+
13+
_After_
14+
15+
```js
16+
new Cypher.ListComprehension(variable).in(new Cypher.Literal([1, 2]));
17+
```
18+
19+
In both cases, the same comprehension will be generated:
20+
21+
```cypher
22+
[var0 IN [1, 2]]
23+
```

0 commit comments

Comments
 (0)