Mischa
01/11/2022, 11:30 AMthis.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),
],
},
})