Skip to content

m971119/graphql-typescript-practice

Repository files navigation

GraphQL + Typescript Practice

This is a simple project initally created via package typescript-express-starter - graphql template.

Project Info

  • Contains 2 entities: Company and User (one-to-many relation)
  • operates authentication and CRUD via graphql API

Set up env config

cp .env.example .env.development.local

Other env: .env.test.local, .env.production.local

Develop

  • call npm run dev and visit localhost:${PORT}/graphql

Linting

Related Resources

TODO

  • TypeORM: Load relation after save() or create() instead of querying it (using find({ relation: ... })) once again
  • make a command to create interface/entity/repository files and write default content