This is a simple project initally created via package typescript-express-starter - graphql template.
- Contains 2 entities:
CompanyandUser(one-to-many relation) - operates authentication and CRUD via graphql API
cp .env.example .env.development.local
Other env:
.env.test.local,.env.production.local
- call
npm run devand visitlocalhost:${PORT}/graphql
npm run lint- detect lint problems by eslintnpm run lint:fix- fix lint errors automatically- VScode extensions:
- TypeORM: Load relation after
save()orcreate()instead of querying it (usingfind({ relation: ... })) once again - make a command to create interface/entity/repository files and write default content