NestJS + GraphQL + Neo4j

Faaiz SHAH
9 min readDec 6, 2019
NestJS+GraphQL+neo4j

This post describes the step-by-step integration of these three technologies with complete code and example queries.

Assumption:

I assume the reader know some basics about all of these three technologies.

Prerequisites:

NestJS and Neo4j should be installed and up and working on your PC/Docker/Cloud. Additionally, i use Visual Studio Code, so it is also assumed to be present.

Step 1: Creating a new NestJS project

$ nest new graphqlNeo4j
⚡ We will scaffold your app in a few seconds..
CREATE /graphql-neo4j/.prettierrc (51 bytes)
CREATE /graphql-neo4j/README.md (3370 bytes)
CREATE /graphql-neo4j/nest-cli.json (64 bytes)
CREATE /graphql-neo4j/package.json (1696 bytes)
CREATE /graphql-neo4j/tsconfig.build.json (97 bytes)
CREATE /graphql-neo4j/tsconfig.json (336 bytes)
CREATE /graphql-neo4j/tslint.json (426 bytes)
CREATE /graphql-neo4j/src/app.controller.spec.ts (617 bytes)
CREATE /graphql-neo4j/src/app.controller.ts (274 bytes)
CREATE /graphql-neo4j/src/app.module.ts (249 bytes)
CREATE /graphql-neo4j/src/app.service.ts (142 bytes)
CREATE /graphql-neo4j/src/main.ts (208 bytes)
CREATE /graphql-neo4j/test/app.e2e-spec.ts (561 bytes)
CREATE /graphql-neo4j/test/jest-e2e.json (183 bytes)

--

--