title: Push notifications with nodejs+Mysql+Onesignal
body: <p>I want to use push notifications as breaking news to my mobile application, everything works perfect but the problem is i need to push a notification whenever database gets new headline. If i use pooling with set interval it continuously  checking and sending same notification again and again . i try with mysql triggers with datetime change but its not working as expected.</p>
  
  <p>what is alternative for listening database changes if row get updates then i must send notification. what i did till now something like this.</p>
  
  <pre><code>connection.query("select headline from news_d inner join werte_inc W where datum = (W.bezugsdatum)", function (err, notifydata) {
      if (err) {
          console.log("error handling")
      }
      else {
  
          var newsnotification = notifydata[0].headline;
          var sendNotification = function (data) {
              var headers = {
                  .....
              };
  
          sendNotification(newsnotification);
      }
  });
  </code></pre>