diff --git a/.changeset/forty-chefs-glow.md b/.changeset/forty-chefs-glow.md deleted file mode 100644 index f39a908f..00000000 --- a/.changeset/forty-chefs-glow.md +++ /dev/null @@ -1,21 +0,0 @@ ---- -"@neo4j/cypher-builder": minor ---- - -Add support for SHORTEST keyword in match and its variations: - -- `.shortest(k)` -- `.shortestGroups(k)` -- `.allShortest` -- `.any` - -For example: - -```js -new Cypher.Match(pattern).shortest(2).return(node); -``` - -```cypher -MATCH ALL SHORTEST (this0:Movie)-[this1]->(this2:Person) -RETURN this0 -``` diff --git a/.changeset/rude-gorillas-add.md b/.changeset/rude-gorillas-add.md deleted file mode 100644 index e13301bd..00000000 --- a/.changeset/rude-gorillas-add.md +++ /dev/null @@ -1,16 +0,0 @@ ---- -"@neo4j/cypher-builder": minor ---- - -Add support for labels in set and remove: - -```js -const movie = new Cypher.Node(); -const clause = new Cypher.Match(new Cypher.Pattern(movie)).set(movie.label("NewLabel")); -``` - -```cypher -MATCH (this0) -SET - this0:NewLabel -``` diff --git a/CHANGELOG.md b/CHANGELOG.md index 2d213b97..1d4ab057 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,40 @@ # @neo4j/cypher-builder +## 1.21.0 + +### Minor Changes + +- [#413](https://github.com/neo4j/cypher-builder/pull/413) [`0f2dfe6`](https://github.com/neo4j/cypher-builder/commit/0f2dfe67a2d4386e6a565791f6a952c0e51c6b8b) Thanks [@angrykoala](https://github.com/angrykoala)! - Add support for SHORTEST keyword in match and its variations: + + - `.shortest(k)` + - `.shortestGroups(k)` + - `.allShortest` + - `.any` + + For example: + + ```js + new Cypher.Match(pattern).shortest(2).return(node); + ``` + + ```cypher + MATCH ALL SHORTEST (this0:Movie)-[this1]->(this2:Person) + RETURN this0 + ``` + +- [#419](https://github.com/neo4j/cypher-builder/pull/419) [`c7dd297`](https://github.com/neo4j/cypher-builder/commit/c7dd29779bc70bf09a2ae442dfa211c13a39415a) Thanks [@angrykoala](https://github.com/angrykoala)! - Add support for labels in set and remove: + + ```js + const movie = new Cypher.Node(); + const clause = new Cypher.Match(new Cypher.Pattern(movie)).set(movie.label("NewLabel")); + ``` + + ```cypher + MATCH (this0) + SET + this0:NewLabel + ``` + ## 1.20.1 ### Patch Changes diff --git a/package.json b/package.json index 840acbe6..bbf2323f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@neo4j/cypher-builder", - "version": "1.20.1", + "version": "1.21.0", "description": "A programmatic API for building Cypher queries for Neo4j", "exports": "./dist/index.js", "main": "./dist/index.js",