title: How to use promises inside express app?
body: <p>I am trying to use a promise inside of app.get function that will run a query which will run on a promise. but problem is the response doesn't wait for the promise and just respondes back.</p>
  
  <p>any idea how the code should so a promise can live inside app.get in express app?</p>