Skip to content

Commit

Permalink
Merge pull request #370 from neo4j/changeset-release/main
Browse files Browse the repository at this point in the history
Release new version - changesets
  • Loading branch information
angrykoala authored Jul 30, 2024
2 parents 1be3cae + d5fee5a commit 7deae1d
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 52 deletions.
10 changes: 0 additions & 10 deletions .changeset/chatty-islands-drop.md

This file was deleted.

8 changes: 0 additions & 8 deletions .changeset/clean-candles-hang.md

This file was deleted.

33 changes: 0 additions & 33 deletions .changeset/orange-ads-lick.md

This file was deleted.

48 changes: 48 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,53 @@
# @neo4j/cypher-builder

## 1.19.0

### Minor Changes

- [#369](https://github.com/neo4j/cypher-builder/pull/369) [`3514bdd`](https://github.com/neo4j/cypher-builder/commit/3514bdd6574a43f05c1eed7da1359a2e327bc047) Thanks [@angrykoala](https://github.com/angrykoala)! - Add support for LOAD CSV:

```js
const row = new Cypher.Variable();
const loadClause = new Cypher.LoadCSV("https://data.neo4j.com/bands/artists.csv", row).return(row);
```

- [#354](https://github.com/neo4j/cypher-builder/pull/354) [`ef49a96`](https://github.com/neo4j/cypher-builder/commit/ef49a96ec8a88676fa731f4d17030e7e01718b77) Thanks [@angrykoala](https://github.com/angrykoala)! - Add support for quantifier patterns:

```js
const m = new Cypher.Node();
const m2 = new Cypher.Node();
const quantifiedPath = new Cypher.QuantifiedPath(
new Cypher.Pattern(m, { labels: ["Movie"], properties: { title: new Cypher.Param("V for Vendetta") } }),
new Cypher.Pattern({ labels: ["Movie"] })
.related({ type: "ACTED_IN" })
.to({ labels: ["Person"] })
.quantifier({ min: 1, max: 2 }),
new Cypher.Pattern(m2, {
labels: ["Movie"],
properties: { title: new Cypher.Param("Something's Gotta Give") },
})
);
const query = new Cypher.Match(quantifiedPath).return(m2);
```

_Cypher_

```cypher
MATCH (this0:Movie { title: $param0 })
((:Movie)-[:ACTED_IN]->(:Person)){1,2}
(this1:Movie { title: $param1 })
RETURN this1
```

### Patch Changes

- [#371](https://github.com/neo4j/cypher-builder/pull/371) [`6d1b0c4`](https://github.com/neo4j/cypher-builder/commit/6d1b0c44d0c7d8862dbbcf7e1c29897cb2e17c5c) Thanks [@angrykoala](https://github.com/angrykoala)! - Add `LOAD CSV` related functions:

- `file()`
- `linenumber()`

## 1.18.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@neo4j/cypher-builder",
"version": "1.18.1",
"version": "1.19.0",
"description": "A programmatic API for building Cypher queries for Neo4j",
"exports": "./dist/index.js",
"main": "./dist/index.js",
Expand Down

0 comments on commit 7deae1d

Please sign in to comment.