title: Merge two response data in one - NodeJS
body: <p>I have a NodeJS server that takes data from two different API's, and then I want to combine the result from both in one JSON response. Here I am sending you the code: </p>
  
  <pre><code>EventModal.eventSearch(eventReq, type, async function (eventRes) {
         EventModal.getBoostEvents(eventReq, type, async function (eventBoostRes) {
                             res.json({
                                  status: true,
                                  data: eventRes,
                                  eventBoostRes: eventBoostRes,
                              });
          });
    });
  </code></pre>
  
  <p>I want <code>eventRes</code> and <code>eventBoostRes</code> in one response in <code>data</code>.So how can I achieve that ?</p>
  
  <p><code>eventRes</code> and <code>eventBoostRes</code> are query result.</p>
  
  <p>Thanks in advance.</p>