New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid types for the "groupBy" function #48
Comments
I am also facing this error. Removal of the switch case produces this issue. Although @omar-dulaimi warned me about this, I did not get any errors at that time(during integrating include and select fields). I am working on this. |
Hey @Shahidul1004 We only need to remove the ".optional()" for the I'll fix and release it now. Thanks |
Released in Let me know if it works for you! |
It works now. Thanks! |
Hi @omar-dulaimi, |
Bug description
There is an invalid type error in the case of the
groupBy
function for all the generated routers. I am building a Next.js app (with Typescript) and it fails during the build process with the following error:How to reproduce
prisma-trpc-generator
packageExpected behavior
The routers should have the correct types for the
groupBy
functions, resulting in the app being successfully built.Prisma information
Environment & setup
Prisma Version
The text was updated successfully, but these errors were encountered: