Join Slack
Communities
Powered by
.prisma.[ ].create does not have this functionalit...
# orm-help
k
KJReactor
08/21/2020, 6:36 PM
.prisma.[].create does not have this functionality. I used to use prisma.$exists.[] back in prisma 1
m
Matheus Assis
08/21/2020, 7:13 PM
You can use a upsert or just use fetchOne before creating, and creating only if undefined
k
KJReactor
08/21/2020, 7:23 PM
I'll use findOne. Upsert updates if the record exists. Thanks!
💪 1
Open in Slack
Previous
Next