Prisma Bug: Count is reported as type Aggregate in Prisma Middleware
Asjas opened this issue · comments
The count
method is being incorrectly referred to as aggregate
in Prisma Middleware.
const count = await prisma.user.count();
{"action":"aggregate","args":{"select":{"_count":{"select":{"_all":true}}}},"dataPath":[],"model":"User","runInTransaction":false}
Fixed in Prisma 3.12.0