movies-graphql-neo4j-server

A simple node.js server for exposing a GraphQL API of movie data, backed by Neo4j.

Stars
14

Movies GraphQL server

A simple node.js server for exposing a GraphQL API of movie data, backed by Neo4j. This GraphQL schema is based on a Neo4j dataset composed of movie data from OMDb and MovieLens.

Run

Neo4j

First, you'll need a Neo4j instance with the movie and review data. The easiest way to get that is to spin up a Neo4j Sandbox Recommendations use-case instance here. Once you've created the Neo4j Recommendations instance be sure to note the instance's host, password, and bolt port. You'll need to set these to connect to Neo4j from the GraphQL server:

Then:

  1. git clone this repo
  2. cd movies-graphql-neo4j-server
  3. npm install
  4. Edit resolvers.js and set the correct host, password, and bolt port for your Neo4j instance on line 2.
  5. npm start

This will start the GraphQL server at http://localhost:8080/ with the GraphQL endpoint at /graphql and the Graphiql query workbench at /graphiql. I highly recommend using Graphiql to explore the GraphQL schema.