Join Slack
Powered by
is there a findoneorcreate function in the js lib...
# orm-help
h
Hasan
09/25/2022, 8:33 AM
is there a findoneorcreate function in the js lib ?
✅ 1
m
MrDrummer25
09/25/2022, 9:43 AM
upsert
is able to do the same thing
https://github.com/prisma/prisma-client-js/issues/85#issuecomment-660057346
n
Nurul
09/26/2022, 7:26 AM
Here’s an example on how you could achieve findOneOrCreate:
https://stackoverflow.com/questions/71524243/how-to-find-or-create-a-record-with-prisma
4
Views
Open in Slack
Previous
Next