You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to use the generated schema-files also in my frontend (and not only in the backend, where these files are generated). But there is no (easy) way to copy them to my frontend project, because enum values are imported from '@prisma/client'. If these values were not imported by prisma client, but included, these files would be "exportable" to another project without any changes.
If you also like the idea of including enum values into the generated files, I would make a pull request.
The text was updated successfully, but these errors were encountered:
Hmmm. Fair point, I can imagine it would be fairly easy to generate another file and zod schema for the enum and then simply use that in place of the import from the Prisma client. A PR would be appreciated for sure!
I would like to use the generated schema-files also in my frontend (and not only in the backend, where these files are generated). But there is no (easy) way to copy them to my frontend project, because enum values are imported from '@prisma/client'. If these values were not imported by prisma client, but included, these files would be "exportable" to another project without any changes.
If you also like the idea of including enum values into the generated files, I would make a pull request.
The text was updated successfully, but these errors were encountered: