After submitting a Post form, I receive a req.body containing multiple values in the following format:
console.log(req.body)
{
productid:[1, 2, 3]
qty: [3, 5, 6]
}
I'm trying to implement a for loop to use these values in SQL queries. However, I encounter an issue with the first query, likely due to it being an async await function.
My inquiry pertains to how I can execute multiple SQL queries within a for loop while still utilizing an async await function?