PrismaP
Prisma7mo ago
6 replies
Ewen

prisma.$on not working with nestjs implementation

Hello,

I am trying to make a small logger in my nest application for all my prisma queries.
But when I try to implement the on event method of logging the queries typescript does not pet me (cf image)
What can I do ? Is it a problem on my part ?
Thank you very much 🙂

info:
prisma                  : 6.11.0
@prisma/client          : 6.11.0
Computed binaryTarget   : rhel-openssl-3.0.x
Operating System        : linux
Architecture            : x64
Node.js                 : v20.19.1
TypeScript              : 5.8.3
Query Engine (Node-API) : libquery-engine 9c30299f5a0ea26a96790e13f796dc6094db3173 (at node_modules/prisma/node_modules
/@prisma/engines/libquery_engine-rhel-openssl-3.0.x.so.node)
PSL                     : @prisma/prisma-schema-wasm 6.11.0-18.9c30299f5a0ea26a96790e13f796dc6094db3173
Schema Engine           : schema-engine-cli 9c30299f5a0ea26a96790e13f796dc6094db3173 (at node_modules/prisma/node_modul
es/@prisma/engines/schema-engine-rhel-openssl-3.0.x)
Default Engines Hash    : 9c30299f5a0ea26a96790e13f796dc6094db3173
Studio                  : 0.511.0
image.png
Was this page helpful?