I have a rest.get request inside a for loop, that is sending around 20 queries (based on data from a previous request that changes the query each time). My problem is that it seems to be running the for loop completely through and then the queries run asynchronously and are responding with the data that returns the quickest instead of consecutively. If I console.log the index of the forloop inside the .end function, it is undefined until the forloop is finished and then it is the final number (even though it is all inside the for loop). I am trying to save (push to an array) the data in the same order I am sending the request, so I can match the data with the previous get response list that I’m printing out. Is there a way to assign my response data to an array in the order that I am sending the request instead of first come first serve? I have a rest.get request inside a for loop, th