1.16.0 • Published 9 days ago

@neo4j/cypher-builder v1.16.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
9 days ago

Cypher Builder

npm version Test Lint

Cypher Builder is a JavaScript programmatic API to create Cypher queries for Neo4j.

import Cypher from "@neo4j/cypher-builder";

const movieNode = new Cypher.Node({
    labels: ["Movie"],
});

const matchQuery = new Cypher.Match(movieNode)
    .where(movieNode, {
        title: new Cypher.Param("The Matrix"),
    })
    .return(movieNode.property("title"));

const { cypher, params } = matchQuery.build();

console.log(cypher);
console.log(params);

Cypher

MATCH (this0:Movie)
WHERE this0.title = $param0
RETURN this0.title

Params

{
    "param0": "The Matrix",
}

Examples

You can find usage examples in the examples folder.

This library is for JavaScript and TypeScript only. If you are using Java, check Neo4j Cypher DSL.

1.16.0

9 days ago

1.15.0

1 month ago

1.14.0

2 months ago

1.13.0

3 months ago

1.12.0

3 months ago

1.11.0

3 months ago

1.10.3

4 months ago

1.10.2

4 months ago

1.10.1

4 months ago

1.10.0

4 months ago

1.9.0

5 months ago

1.8.0

5 months ago

1.2.0

10 months ago

1.1.1

10 months ago

1.1.0

10 months ago

1.0.0

10 months ago

1.7.3

6 months ago

1.7.2

6 months ago

1.7.1

6 months ago

1.7.0

6 months ago

1.5.2

7 months ago

1.6.0

7 months ago

1.5.1

7 months ago

1.5.0

7 months ago

1.4.0

8 months ago

1.3.0

9 months ago

1.1.2

10 months ago

1.7.4

6 months ago

0.6.0

10 months ago

0.5.4

11 months ago

0.5.3

11 months ago

0.5.0

11 months ago

0.5.2

11 months ago

0.4.3

12 months ago

0.5.1

11 months ago

0.4.2

1 year ago

0.3.0

1 year ago

0.4.1

1 year ago

0.4.0

1 year ago

0.1.10

1 year ago

0.2.1

1 year ago

0.2.0

1 year ago

0.1.8

1 year ago

0.1.7

1 year ago

0.1.9

1 year ago

0.1.4

1 year ago

0.1.6

1 year ago

0.1.5

1 year ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago