How to read database triggers on electron app

I want to know how to use database triggers on electron app; As if now, I have created the triggers on mongoDB and listening on logs.