```this.model.groupBy({ by: ["id"], // <-...
# prisma-client
m
Copy code
this.model.groupBy({
      by: ["id"], // <- what goes here?
      _avg: {}, // <- what goes here?
      orderBy: {_avg:{}},// <- what goes here? 
      where: {
        AND: [
          { CandidateVacancyMatch: { every: { isLatest: true } } }, // latest matches
          this.filterForUserRead(user),
        ],
      },
    })