bagfaceguy
bagfaceguy
TTCTheo's Typesafe Cult
Created by bagfaceguy on 3/6/2024 in #questions
Unique key constraint error
I am using the latest create-t3-app and I have a field that is unique in my shema. Now I want to handle this error nicely and the error I am getting right now doesnot seem pretty enough to be displayed on the client side.
Invalid `prisma.commercialOffer.create()` invocation:


Unique constraint failed on the constraint: `CommercialOffer_commercialOfferNo_key`
Invalid `prisma.commercialOffer.create()` invocation:


Unique constraint failed on the constraint: `CommercialOffer_commercialOfferNo_key`
2 replies