Asjas / prisma-redis-middleware

Prisma Middleware for caching queries in Redis

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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}

prisma/prisma#12222

Fixed in Prisma 3.12.0