How to use enum?
I'm using Next.js and TypeScript for my project, but I'm getting an error when I attempt to call prisma create.
Error: Type 'string' is not assignable to type 'Status | undefined'.ts(2322)
Does anyone know how to resolve this error? It looks like I need to use the enum instead of a string, but I'm not sure how to do that5 Replies
I think its should not be lower case
It needs to be upper case
Same as defined in enumeration
Unknown User•9mo ago
Message Not Public
Sign In & Join Server To View
u need to pass string
What is Role.OFFERED?
Unknown User•9mo ago
Message Not Public
Sign In & Join Server To View
Thanks!