An example GraphQL server application which written with TypeGraphQL + TypeORM.
- High code readability.
- Test codes.
- Lazy initialization.
- Using TypeDI as a container & dependency injector.
the DB relation diagram is same as follows. you can also check this out in src/orm-entities/
directory. implemented with TypeORM entities.
this application uses dotenv as a configuration loader. you can place .env.dev
dotenv file in project root directory to configure run this application.
MYSQL_HOST=127.0.0.1
MYSQL_PORT=3306
MYSQL_USER=root
MYSQL_PASSWORD=my-pokemon-rocks
MYSQL_DATABASE=pokemon
HTTP_PORT=4000
$ npm install
$ npm run dev
$ npm run test
- nested GraphQL schema example. -> done.
- nested (releation between tables) entities example -> done
- GraphQL mutations with permission.