PrismaP
Prisma2y ago
1 reply
Dbugger

Getting total count of records with one Query

Is it possible to get a _count of all records when doing a .findMany() query, without having to do a second .count() query?

I know it works for relationships, but I dont know how it works for simple queries.
Was this page helpful?