Skip to content

Commit 86b7d1e

Browse files
authored
Merge pull request #571 from neo4j/remove-children
Remove method children from concat
2 parents a4cbaf0 + b399bb0 commit 86b7d1e

File tree

3 files changed

+10
-132
lines changed

3 files changed

+10
-132
lines changed

.changeset/floppy-llamas-teach.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
"@neo4j/cypher-builder": major
3+
---
4+
5+
Remove method `.children` from concat clauses:
6+
7+
```js
8+
const query = Cypher.utils.concat(clause1, clause2);
9+
query.children; // No longer supported
10+
```

src/clauses/utils/concat.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,6 @@ export class CompositeClause extends Clause {
5252
return this._children.length === 0;
5353
}
5454

55-
/** @deprecated Children from a composite clause should not be accessed as this will lead to unexpected behaviour */
56-
public get children(): Array<CypherASTNode> {
57-
return this._children;
58-
}
59-
6055
/** @internal */
6156
public getCypher(env: CypherEnvironment, importWithCypher?: string): string {
6257
// NOTE: importWithCypher used to pass down import WITH to UNION clauses

tests/deprecated/concat.test.ts

Lines changed: 0 additions & 127 deletions
This file was deleted.

0 commit comments

Comments
 (0)