Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

nestjs prisma on query

@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');
    });
  }
}
Comment

PREVIOUS NEXT
Code Example
Javascript :: abstract class in js 
Javascript :: redirect using expressjs 
Javascript :: google maps load kml file javascript 
Javascript :: vue route automatic redirect 
Javascript :: material ui navbar 
Javascript :: redis to promise 
Javascript :: how to make array empty 
Javascript :: hammerjs 
Javascript :: jade cdn 
Javascript :: notify jquery 
Javascript :: webpack dev server 
Javascript :: import and export data in mongodb 
Javascript :: how to add react.memo in export list 
Javascript :: flutter post request 
Javascript :: how to access node js server from another computer 
Javascript :: react set initial state without constructor 
Javascript :: iterate over array of object javascript and access the properties 
Javascript :: react native ant design 
Javascript :: horizontal tabs in react js 
Javascript :: moment js date between two dates 
Javascript :: javascript array join last element with and 
Javascript :: javascript for each 
Javascript :: ubuntu apps to install 
Javascript :: search node in tree javascript 
Javascript :: Return an html element with react 
Javascript :: javascript copy clipboard 
Javascript :: jquery parse url parameters 
Javascript :: jquery in javascript 
Javascript :: pass props in react 
Javascript :: npm: Create react chrome extension 
ADD CONTENT
Topic
Content
Source link
Name
4+8 =