Gabe O'Leary
10/09/2021, 12:45 AM_count used in some places and count used in other places. What's the difference? should I be using one over the other?Ricky Hopkins
10/09/2021, 9:49 AMcount used anywhere, I would go with _count and see if that helpsGabe O'Leary
10/09/2021, 4:01 PMRicky Hopkins
10/09/2021, 9:38 PMprisma.area.groupBy({
by: ["name"],
_count: { name: true },
orderBy: { _count: { name: "desc" } },
having: { name: { _count: { gt: 1 } } },
});
It looks like prisma is using the wrong type, my orderBy prop is of type AreaOrderByWithAggregationInput not AreaOrderByInput seems like your group by method does not know that it is using aggregation?Gabe O'Leary
10/10/2021, 12:03 AMGabe O'Leary
10/10/2021, 12:04 AMGabe O'Leary
10/10/2021, 12:04 AM