Installation
This guide shows how to start using Cypher® Builder by setting up a Node.js project with @neo4j/cypher-builder
.
Instructions
-
In a folder of your choice, run the following command to create a Node.js project and a
package.json
file:npm init es6 -y
Note that these examples use ES6 modules, but CommonJS modules can be used as well.
-
Install
@neo4j/cypher-builder
and add it to the dependencies list with the following command:npm install --save @neo4j/cypher-builder
-
Create a new file
main.js
with the following content:import Cypher from "@neo4j/cypher-builder";
-
Execute the script:
node main.js
At this point, the script should not do anything, but if it doesn’t show an error it means Cypher Builder has been correctly installed.