prisma userswithzeroposts

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