Access to all courses
Aggregates - Count
In this lesson, we'll discuss the different ways to count records in Prisma. We'll cover the count method and how to count relationships. ## Count method In the previous project, we created a Review model. This model is attached to our Product model. Let's say we want to know how many reviews we have for a specific product. We can use the count method to calculate this. ```javascript //
The rest of this lesson is waiting.
Join JS Mastery Pro to unlock it.





Get Full Access
$149 /month
Lock in a year & save—2 months free!
Quizzes, mini-challenges, AI summaries, inline sandboxes
Participation in a private community
Build real production-grade apps
Mock interviews & project reviews
Weekly live sessions & member-only access