Type inference broken for aggregation queries when extension is turned on. #23973
Labels
bug/1-unconfirmed
Bug should have enough information for reproduction, but confirmation has not happened yet.
kind/bug
A reported bug.
team/client
Issue for team Client.
tech/typescript
Issue for tech TypeScript.
topic: client types
Types in Prisma Client
Bug description
When an extension is turned on (have attempted this with multiple extensions) it causes aggregation queries to show types that are not fully "computed" or "reduced" as compared to when an extension is off.
How to reproduce
Instally any extension, e.g. prisma-kysely
Attempt to run any aggregation query:
await snapshotDb.snapshotRecord.aggregate({_count:true})
Type shown by VSCode:
Expected behavior
Prisma Schema
Environment & setup
Node.js v20.11.0
Prisma Version
"@prisma/client": "5.13.0"
"prisma": "5.13.0",
"prisma-extension-kysely": "2.1.0",
"prisma-kysely": "1.8.0",
The text was updated successfully, but these errors were encountered: