Brakebein / prisma-generator-nestjs-dto

Generates NestJS DTO classes from Prisma Schema
Apache License 2.0
45 stars 24 forks source link

Disable MTM relations generation in config #50

Closed Serpentarius13 closed 1 week ago

Serpentarius13 commented 1 week ago

I want to disable generating all MTM relations (and possible all relations whatsoever) in config, rather than writing /// DtoEntityHidden on every model. By default Prisma doesn't include those relations in returning records, so I think this feature should be on-demand rather than turned on from the start

Brakebein commented 1 week ago

The output without any relations is basically the plain DTO. I recently added the config to omit the generation of entity files; https://github.com/Brakebein/prisma-generator-nestjs-dto/issues/42#issuecomment-2259990757

Does it already solve your issue? Or am I missing something?

Serpentarius13 commented 1 week ago

The output without any relations is basically the plain DTO. I recently added the config to omit the generation of entity files; #42 (comment)

Does it already solve your issue? Or am I missing something?

Yeah, thanks, I think I will just use entities then.