diff --git a/.changeset/quick-tables-begin.md b/.changeset/quick-tables-begin.md deleted file mode 100644 index 1481fd4b..00000000 --- a/.changeset/quick-tables-begin.md +++ /dev/null @@ -1,21 +0,0 @@ ---- -"@neo4j/cypher-builder": patch ---- - -Support for assigning maps and variables directly to variables with `.set` to override all properties of a node: - -```js -new Cypher.Match(new Cypher.Pattern(movie)).set([ - movie, - new Cypher.Map({ - title: new Cypher.Param("The Matrix"), - year: new Cypher.Param(1999), - }), -]); -``` - -```cypher -MATCH (this0) -SET - this0 = { title: $param0, year: $param1 } -``` diff --git a/CHANGELOG.md b/CHANGELOG.md index 17139624..eb28a3e0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,27 @@ # @neo4j/cypher-builder +## 2.3.1 + +### Patch Changes + +- [#497](https://github.com/neo4j/cypher-builder/pull/497) [`e544b91`](https://github.com/neo4j/cypher-builder/commit/e544b91e0fb18fb171b7df324d11d2626e7d00d9) Thanks [@angrykoala](https://github.com/angrykoala)! - Support for assigning maps and variables directly to variables with `.set` to override all properties of a node: + + ```js + new Cypher.Match(new Cypher.Pattern(movie)).set([ + movie, + new Cypher.Map({ + title: new Cypher.Param("The Matrix"), + year: new Cypher.Param(1999), + }), + ]); + ``` + + ```cypher + MATCH (this0) + SET + this0 = { title: $param0, year: $param1 } + ``` + ## 2.3.0 ### Minor Changes diff --git a/package.json b/package.json index 4df65e9e..18457a89 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@neo4j/cypher-builder", - "version": "2.3.0", + "version": "2.3.1", "description": "A programmatic API for building Cypher queries for Neo4j", "exports": "./dist/index.js", "main": "./dist/index.js",