I'm currently facing an issue with 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 can I pass the outer data to the inner request in a way that actually works? This is what I've tried so far (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 solution to this problem? I am working with MongoDB and struggling with Joins as they are not supported.