Search
Star
Feedback
Setup for Free
ยฉ 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
enum @map value - Prisma
P
Prisma
โข
17mo 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,819
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Enum with custom value
P
Prisma / help-and-questions
14mo ago
TypeError: Invalid enum value: __esModule
P
Prisma / help-and-questions
7mo 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
11mo ago