typegraphql-prisma icon indicating copy to clipboard operation
typegraphql-prisma copied to clipboard

emitOnly readResolvers

Open rjgrandshipper opened this issue 2 years ago • 2 comments

Hi, I was wondering if it would be possible to introduce a feature where only the read-only resolvers are generated. This would enable us to retrieve data exclusively. Additionally, it could contribute to reducing the size of the generated files.

Thank you for considering this enhancement.

rjgrandshipper avatar Dec 11 '23 15:12 rjgrandshipper

@MichalLytek thank for tagging, is this a difficult enhancement? I'm willing to contribute, i just need guidance

rjgrandshipper avatar Dec 18 '23 01:12 rjgrandshipper

Shouldn't be hard, there are existing resolvers option which you can follow with this implementation.

MichalLytek avatar Dec 18 '23 06:12 MichalLytek