-
-
Notifications
You must be signed in to change notification settings - Fork 286
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
[BUG] Incorrect casing in generated Prisma types #1815
Comments
By convention, Ts.ED use a pascal case for model and it seems to be the same thing for prisma. The problem seems to be here: https://github.com/tsedio/tsed/blob/production/packages/orm/prisma/src/generator/transform/transformModelToClass.ts#L7 |
|
🎉 This issue has been resolved in version 6.110.2 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
🎉 This issue has been resolved in version 7.0.0-beta.4 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Information
When using lowercase model names in Prisma, the repository types generated by @tsed/prisma have incorrect casing on the
aggregate
parameter which results in broken types.Prisma's behavior is likely caused by this line:
https://github.com/prisma/prisma/blob/f35af40ffed4cc96d990ab26c96d99c5f104c178/packages/client/src/generation/utils.ts#L134
Example
Acceptance criteria
The text was updated successfully, but these errors were encountered: