I want to merge the output from two different API calls into a single JSON answer using a NodeJS server that receives data from two different APIs. I'll send you the code right here:
EventModal.eventSearch(eventReq, type, async function (eventRes) {
       EventModal.getBoostEvents(eventReq, type, async function (eventBoostRes) {
                           res.json({
                                status: true,
                                data: eventRes,
                                eventBoostRes: eventBoostRes,
                            });
        });
  });
I want eventRes and eventBoostRes in one response in data.So how can I achieve that ?
eventRes and eventBoostRes are query result.
Thanks in advance.