Matt Matheson
12/09/2021, 6:16 PMMatt Matheson
12/09/2021, 8:02 PMprismaClient._comment.groupBy({
by: ['postid', 'tagid', 'othertagid'],
_count: true,
where: {
user: {
id: userid,
}
}
})
But I'd like to have the joins in there as well (afaict this isn't possible):
prismaClient._comment.groupBy({
by: ['postid', 'tagid', 'othertagid'],
_count: true,
where: {
user: {
id: userid,
}
},
include: {post: true, tag: true, othertag: true},
})