gogo te palobo
gogo te palobo
PPrisma
Created by gogo te palobo on 4/14/2025 in #help-and-questions
Enum mapped values in typedSQL
Hi! 👋 I’m having trouble using enums with mapped values in typedSql. Here’s what I have:
enum Status {
away
appearOffline @@map("appear_offline")
}
enum Status {
away
appearOffline @@map("appear_offline")
}
And in SQL:
SELECT * FROM "User" WHERE "status"::text = ANY($1)
SELECT * FROM "User" WHERE "status"::text = ANY($1)
Prisma sends ['away', 'appearOffline'] instead of ['away', 'appear_offline'], which doesn’t match the DB values. Prisma version: 6.3.1 Is this expected? Or am I missing something? Thanks!
4 replies