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
As it currently stands in Prisma, you are not allowed to create enums that fall outside of the normal variable naming convention. This means for enums with spaces, dashes, begins with a number, etc., you have to create a @map that maps a variable-appropriate name to the variable-inappropriate name. See #4954 in the Prisma repo for more details and examples. This is currently an open issue, with no resolution in sight.
A possible solution to this problem is available through this package by using the @map values in the generated enum types.
Alternative to this, we can only manually build the enum types ourselves instead of relying on the generated ones from this library. I would love for this library to solve every problem I have, and it's really close to being able to. Love it so far!
The text was updated successfully, but these errors were encountered:
As it currently stands in Prisma, you are not allowed to create enums that fall outside of the normal variable naming convention. This means for enums with spaces, dashes, begins with a number, etc., you have to create a
@map
that maps a variable-appropriate name to the variable-inappropriate name. See #4954 in the Prisma repo for more details and examples. This is currently an open issue, with no resolution in sight.A possible solution to this problem is available through this package by using the
@map
values in the generated enum types.Alternative to this, we can only manually build the enum types ourselves instead of relying on the generated ones from this library. I would love for this library to solve every problem I have, and it's really close to being able to. Love it so far!
The text was updated successfully, but these errors were encountered: