Oleg Rudak
04/15/2022, 7:58 AMSELECT published, COUNT(*) FROM Posts GROUP BY published
EDIT 2:
I need this, but in relation:
const data = await prisma.posts.groupBy({
by: ["published"],
_count: {
published: true,
},
});
Nurul
04/20/2022, 10:36 AM