Facing error after removing optional from orderBy field in groupBy schema #66
Shahidul1004
started this conversation in
General
Replies: 1 comment 2 replies
-
Hey @Shahidul1004 How can I reproduce the issue? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi @omar-dulaimi,
I am facing an issue with groupBy after the 0.7.1 release of prisma-trpc-generator.
Since you have removed optional from orderBy to solve this issue, the groupBy schema always requires orderBy field. And I think that will create a problem because orderBy is only required if we use take and/or skip in groupBy schema, otherwise, it is optional. Here is the link to the prisma doc.
Beta Was this translation helpful? Give feedback.
All reactions