MichalLytek / typegraphql-prisma

Prisma generator to emit TypeGraphQL types and CRUD resolvers from your Prisma schema

Home Page:https://prisma.typegraphql.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

emitOnly readResolvers

rjgrandshipper opened this issue · 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.

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

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