Prisma zählen nicht null
const userCount = await prisma.user.count({
select: {
_all: true, // Count all records
name: true, // Count all non-null field values
},
})
Puzzled Puffin