MichalLytek / typegraphql-prisma

Prisma generator to emit TypeGraphQL types and CRUD resolvers from your Prisma schema
https://prisma.typegraphql.com
MIT License
891 stars 113 forks source link

emitOnly readResolvers #427

Open rjgrandshipper opened 11 months ago

rjgrandshipper commented 11 months ago

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 commented 11 months ago

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

MichalLytek commented 11 months ago

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