I have such a problem (structured english)
GET HTTP Resource
FOR every data item received do
GET another HTTP Resource
Alter the original data from the outer loop with data from the inner GET
RETURN altered data
How would you pass the outer data to the inner request, e.g. does not work (in pseudo code):
GET HTTP (callback function (recDataOUTER){
GET NEW HTTP ((recDataOUTER, recDataINNER){
Alter both data accordingly
})
return altered data
})
Is there a more elegant way? The background is that I am using MongoDB and am struggling with Joins (there are no joins I know).