Get Started What is a GraphDB? GraphDB vs RDBMS GraphDB vs NOSQL Language Drivers Cypher Cypher Basics Build a Recommendation Engine Cypher Refcard Data Modeling Graph Data Modeling Guidelines Working with Data Neo4j Browser Visualization Importing Data into Neo4j Graph… Learn More »
You should be familiar with graph database concepts and the property graph model. You should have installed Neo4j and made yourself familiar with our Cypher Query language.
The standalone Neo4j-Server can be installed on any machine and then accessed via its HTTP API.
Below we show how you can use something as simple as the
request module to send queries to and receive responses from Neo4j.
But you can also choose to leverage one of the existing drivers for Neo4j which wrap that protocol in a more convenient API for you.
Follow the tips below to get you started.
The Example Project
It is a small one page webapp for our movies database. The front-end is the same for all drivers, just the backends show you how to connect to Neo4j from the different languages and drivers.
Using the HTTP-Endpoint directly
You can use something as simple as the
request node-module to send queries to and receive responses from Neo4j. The endpoint protocol and formats are explained in detail in the Neo4j Manual. It enables you do to much more, e.g. sending many statments per requests or keeping transactions open across multiple requests.
Here is a simple example:
Most widely used Node.js driver for Neo4j.
- neo4j-js on GitHub
- Author: Bret Copeland
Node.js driver for the embedded Neo4j Database. Supports HA Setups, API is built to be as close to the Java API as possible.
- node-neo4j-embedded on GitHub
- Author: Jochen Weis
Sign up to find out more about Neo4j's upcoming events & meetups.