title: Typescript with Mongoose EXEC() function async/await
body: <p>I am trying to use Typescript with Express and Mongoose. So far the result has been amazing. I am however stuck at a very minor part. </p>
  
  <p><strong>Premise: I am executing a Mongoose Query using EXEC()</strong> </p>
  
  <pre><code>let result = await UserModel.User.find().exec();
  </code></pre>
  
  <p>I have to use the async / await as there is some processing after this line and I want to avoid callbacks throughout </p>
  
  <p><strong>Problem</strong></p>
  
  <p>I need to get the <strong>{err, data}</strong>  from the result object returned by the query. However currently it simply holds the entire data and I am not able to perform the error handling</p>
  
  <p>So need a way to get the mongoose error description when I use <strong>async/await</strong></p>