A debug mode, or a way to log the queries will really help. For example, I have a NestJs project with two different services, one for write and another for read only. In the service for write I can do this this.prisma.$on('query', console.log); to see the query and the parameters. But the $on method doesn't exists when I create the prisma client like this:
A debug mode, or a way to log the queries will really help. For example, I have a NestJs project with two different services, one for write and another for read only. In the service for write I can do this
this.prisma.$on('query', console.log);
to see the query and the parameters. But the$on
method doesn't exists when I create the prisma client like this:Did I created the client right? And is there any way to log the queries?