I have a very large array of IDs (thousands of IDs). I want to loop through this array and for each value, make a request to an API like so :
[12, 32, 657, 1, 67, ...].forEach((id) => {
axios.get(`myapi.com/user/${id}`).then(({ data }) => {
console.log(data.name);
});
});
However, I have so many requests to make I can't make them asynchronous because my computer has limits... Is it possible to wait for each request to be finished before making the next one ?