So, is there any way to determinate number of records in the database with "findMany" method?
r
Ryan
06/18/2021, 6:51 AM
@Danila Pavliuk 👋
Currently not, but you can follow this request and add a 👍 as well for more updates 🙂
The workaround would be running two queries: 1 for data and 1 for count in a single transaction via
prisma.$transaction
.
👍 1
d
Danila Pavliuk
06/18/2021, 7:09 AM
Oh, thanks. I am surprised why this has not happened before...