This is a Next.js project that uses Apollo Server to introspect Neo4j schema to generate GraphQL.
CodeSandbox is utilized to enable querying your Neo4j datbase using GraphQL syntax.
-
Make a copy of
.env.local.example
as.env.local
and fill out your values for your Neo4j database. -
Ensure your Neo4j database is up and running (and has some data in it).
-
Update packages
npm install
# or
yarn
- Run the development server:
npm run dev
# or
yarn dev
Open http://localhost:3000 with your browser to view Code Playground.
The pages/api
directory is mapped to /api/*
. Files in this directory are treated as API routes instead of React pages.