is there an example of how to check if a record ex...
# prisma-client
a
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
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
thanks Tasin!
🙌 1