Closed fleischerdesign closed 1 year ago
I just ran into this too and believe I fixed it with this PR - https://github.com/omar-dulaimi/prisma-trpc-generator/pull/43. @omar-dulaimi would you mind reviewing?
cc @Shahidul1004
@kristinlindquist Yes, of course. I'm taking a look at the code
Bug description
Since updating to version 0.6.0, my route generation fails on all "OrThrow" queries. The generated Router has on all of those queries an undefined procedure name and an undefined input:
How to reproduce
Expected behavior
The generated Procedure should be either "Mutation" or "Query" and the input should not be "undefined".
Prisma information
Environment & setup
OS: MacOS Database: PostgreSQL Node.js Version: 18.11.0
Prisma Version