Join Slack
Powered by
is there an example of how to check if a record ex...
# prisma-client
a
Alex
08/17/2021, 1:39 AM
is there an example of how to check if a record exists in the database with Prisma client V2 (v2.29.1) with a field other than `id`*?*
t
Tasin Ishmam
08/17/2021, 2:17 AM
Hi 👋 You could try the
count
API. There was a very similar question on Stackoverflow, perhaps you'd find the answer relevant:
https://stackoverflow.com/a/68810868/8855844
✅ 1
a
Alex
08/17/2021, 3:19 AM
thanks Tasin!
🙌 1
Open in Slack
Previous
Next