Search
Star
1.4k
Feedback
Setup for Free
P
Prisma
•
15mo ago
•
12 replies
stryche.
enum @map value
I have this enum mapping but it doesn
't generate the same value instead it uses the key as the value
.
enum Gender { MALE @map("M") FEMALE @map("F") }
enum Gender { MALE @map("M") FEMALE @map("F") }
Prisma
Join
The official Discord server of Prisma! Find us online at prisma.io
9,805
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
enum
Gender
{
MALE
@map("M")
FEMALE
@map("F")
}
enum
Gender
{
MALE
@map("M")
FEMALE
@map("F")
}
Similar Threads
Enum with custom value
P
Prisma / help-and-questions
12mo ago
TypeError: Invalid enum value: __esModule
P
Prisma / help-and-questions
6mo ago
Removing enum value fails on foreign key
P
Prisma / help-and-questions
2y ago
Enum mapped values in typedSQL
P
Prisma / help-and-questions
10mo ago