Patrick
10/19/2022, 3:04 PMTakeo Kusama
10/19/2022, 3:23 PMTakeo Kusama
10/19/2022, 3:27 PMPatrick
10/19/2022, 4:12 PMconst result = await prisma.product.groupBy({
by: ["handleCz"],
having: {
handleCz: {
_count: {
gt: 1,
},
},
},
});
But it yields only 19 results where it should be 49. Any idea what’s wrong here?Raphael Etim
10/19/2022, 4:18 PMconst result = await prisma.product.groupBy({
by: ['handleCz'],
where: {
handleCz: {
contains: '....' // enter some value
}
},
_count: {
handleCz: true,
},
})
Takeo Kusama
10/19/2022, 4:20 PMfindMany({where: { handleCz: {in: [...result.map(data => data.handleCz)] }}})
.
If not so, sorry, I have no idea unless seeing actual data and the table.Patrick
10/19/2022, 4:27 PMTakeo Kusama
10/19/2022, 4:57 PMPatrick
10/19/2022, 5:16 PM