#how to handle entities in mono repo
1 messages · Page 1 of 1 (latest)
If you are using typeorm, my recommendation is to switch from the glob pattern to explicitly importing your entities.
Here what I did when I needed to handle entities in the monorepo:https://github.com/H4ad/omnistack/blob/master/backend-nestjs/apps/api/src/infra/core/typeorm/entities.ts
Then I did the same with Migrations, and then import into https://github.com/H4ad/omnistack/blob/master/backend-nestjs/apps/api/src/infra/core/typeorm/typeorm.config.service.ts#L33-L34
and use this service to configure my connection
Nest is a framework for building efficient, scalable Node.js server-side applications. It uses progressive JavaScript, is built with TypeScript and combines elements of OOP (Object Oriented Progamming), FP (Functional Programming), and FRP (Functional Reactive Programming).