Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Getting total count of records with one Query - Prisma
P
Prisma
•
2y ago
•
1 reply
Dbugger
Getting total count of records with one Query
Is it possible to get a
_count
_count
of all records when doing a
.findMany()
.findMany()
query
, without having to do a second
.count()
.count()
query
?
I know it works for relationships
, but I dont know how it works for simple queries
.
Prisma
Join
The official Discord server of Prisma! Find us online at prisma.io
9,819
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Count records where number of related records is greater than X
P
Prisma / help-and-questions
14mo ago
Count with distinct
P
Prisma / help-and-questions
2y ago
Optimizing MongoDB Query for Unique User Count
P
Prisma / help-and-questions
12mo ago