Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .changeset/floppy-llamas-teach.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
"@neo4j/cypher-builder": major
---

Remove method `.children` from concat clauses:

```js
const query = Cypher.utils.concat(clause1, clause2);
query.children; // No longer supported
```
5 changes: 0 additions & 5 deletions src/clauses/utils/concat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,6 @@ export class CompositeClause extends Clause {
return this._children.length === 0;
}

/** @deprecated Children from a composite clause should not be accessed as this will lead to unexpected behaviour */
public get children(): Array<CypherASTNode> {
return this._children;
}

/** @internal */
public getCypher(env: CypherEnvironment, importWithCypher?: string): string {
// NOTE: importWithCypher used to pass down import WITH to UNION clauses
Expand Down
127 changes: 0 additions & 127 deletions tests/deprecated/concat.test.ts

This file was deleted.