Sijad
04/14/2020, 4:49 PMcount of the realtion using findManyRyan
04/15/2020, 7:27 AMcount method separately along with findMany.
Something like
prisma.user.count()
Count accepts the same params as findMany so that will work for you in this caseRyan
04/15/2020, 7:27 AMSijad
04/15/2020, 2:29 PMSijad
04/15/2020, 2:30 PMcount for my 1-n relation, if I perform count for each items I'd end up with 1+n queriesSijad
04/15/2020, 2:30 PMRyan
04/15/2020, 2:32 PMSijad
04/15/2020, 2:34 PM