PRISMA UsersWithzeroposts
const usersWithZeroPosts = await prisma.user.findMany({
where: {
posts: {
none: {},
},
},
})
Puzzled Puffin
const usersWithZeroPosts = await prisma.user.findMany({
where: {
posts: {
none: {},
},
},
})