Hey guys what's the best way to generate statistic...
# orm-help
j
Hey guys what's the best way to generate statistics data in Prisma, for example order counts or total revenue per month? From an
order
table for example
a
Hey Julian, You could take a look at the
<https://www.prisma.io/docs/reference/api-reference/prisma-client-reference#aggregate|aggregate>
function. It allows for a few number operations like counting, average, etc. Let me know if you have any specific questions about it!