logo
Course

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.

gsap
javascript
nextjs
react native
threejs

Get Full Access

$149 /month

Lock in a year & save—2 months free!

  • Access to all courses

  • 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