Slackbot
07/14/2022, 3:38 PMAlex Ruheni
findFirst
returns the first record that matches a list of criteria – similar to findMany
.
findUnique,
on the other hand, allows you to retrieve a single record by either its id
or a unique
attribute.
Here are a few references to our docs for the APIs – findUnique and findFirst.