Join Slack
Powered by
Hey! Im pretty new to Prisma. Why do i get an erro...
# orm-help
j
Jakob Clausen
07/26/2021, 5:27 PM
Hey! Im pretty new to Prisma. Why do i get an error here? =>
g
Gelo
07/26/2021, 5:45 PM
Make the userId unique
Gelo
07/26/2021, 5:46 PM
userId Int @unique
r
Ryan
07/27/2021, 6:24 AM
@Jakob Clausen
👋 You can also use
findFirst
here instead of
findUnique
if
userId
cannot be made unique.
Open in Slack
Previous
Next