Skip to content

Commit

Permalink
Merge pull request #303 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 Feb 23, 2024
2 parents 0bfd0d5 + a4156ba commit 7577725
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 28 deletions.
27 changes: 0 additions & 27 deletions .changeset/purple-crews-pretend.md

This file was deleted.

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

## 1.13.0

### Minor Changes

- [#301](https://github.com/neo4j/cypher-builder/pull/301) [`f2f679b`](https://github.com/neo4j/cypher-builder/commit/f2f679bc6256ffb20feeb9146221e06b8bf06247) Thanks [@angrykoala](https://github.com/angrykoala)! - Add support for Collect subqueries:

```js
const dog = new Cypher.Node({ labels: ["Dog"] });
const person = new Cypher.Node({ labels: ["Person"] });

const subquery = new Cypher.Match(
new Cypher.Pattern(person)
.related(new Cypher.Relationship({ type: "HAS_DOG" }))
.to(dog),
).return(dog.property("name"));

const match = new Cypher.Match(person)
.where(Cypher.in(new Cypher.Literal("Ozzy"), new Cypher.Collect(subquery)))
.return(person);
```

```cypher
MATCH (this0:Person)
WHERE "Ozzy" IN COLLECT {
MATCH (this0:Person)-[this1:HAS_DOG]->(this2:Dog)
RETURN this2.name
}
RETURN this0
```

## 1.12.0

### Minor 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.12.0",
"version": "1.13.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 7577725

Please sign in to comment.