How to use await in Promises?

Thanks a lot for this. I tried this

const arr = table15.data
const query = get_did_pagex7

const promises = arr.map((item) => {
  
  await query.trigger({ 
    additionalScope: {
      criteria4 : item.Dealer_s_Id_associ_s.id
    }
  });
                       

});

return Promise.all(promises)

And get this answer in popup notification
did: await is only valid in async functions and the top level bodies of modules