@Injectable()
export class TestService {
constructor(private prismaService: PrismaService) {
prismaService.$on<any>('query', (event: Prisma.QueryEvent) => {
console.log('Query: ' + event.query);
console.log('Duration: ' + event.duration + 'ms');
});
}
}