Skip to content
  1. Examples

Neo4j Cypher

This exame shows how to connect to a neo4j database, run cypher queries and display the results in Ogma.
This example actually uses pre-recorded responses of a neo4j@v3.0.4 server. To use this example with your database, omit the stub file and follow the instructions the example code.

Use neo4j javascript driver to create a driver and a session.
Then use Ogma's parse.neo4j() function to parse the results into Ogma's RawGraph format.

Double click on a node to expand the graph.