patwanjau / neo4j-graph-sample

Created with CodeSandbox

Home Page:https://codesandbox.io/s/github/patwanjau/neo4j-graph-sample

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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
      }
    }
  }
}

About

Created with CodeSandbox

https://codesandbox.io/s/github/patwanjau/neo4j-graph-sample


Languages

Language:JavaScript 95.2%Language:Shell 4.8%