Installation
This page shows you how to set up a Node.js project with @neo4j/cypher-builder.
Requirements
-
Node.js 16.0.0 or greater
-
[Optional] A Neo4j database where you can try Cypher® queries
Instructions
-
In a folder of your choice, run the following command to create a Node.js project and a
package.jsonfile:npm init es6 -yNote that these examples use ES modules, but CommonJS modules can be used as well.
-
Install
@neo4j/cypher-builderand add it to the dependencies list with the following command:npm install --save @neo4j/cypher-builder -
Create a new file
main.jswith the following content:import Cypher from "@neo4j/cypher-builder"; -
Execute the script:
node main.jsAt this point, the script should not do anything, but if it doesn’t show an error it means Cypher® Builder has been correctly installed.