Open in CodeSandbox

Bookstore GraphQL API

This directory contains a Node.js GraphQL API application using @neo4j/graphql.

Try it live on CodeSandbox here

Setup

First, edit .env, replacing the defaults with your database connection string, user, and database (optional):

NEO4J_URI=
NEO4J_USER=
NEO4J_PASSWORD=

Next, install dependencies.

npm install

Then start the API application,

npm run start

This will start a local GraphQL API server at localhost:4000.

Example GraphQL Queries

{
  books {
    title
    reviews {
      rating
      text
      author {
        username
      }
    }
  }
}