I need some explanations about concatenation / piping / grouping of nested Observables.
I have a remote API /foo/bars/100 that replies with the following json object
{ 
    id: 100,
    members: [{memberID: 1},..,{{memberID: N}]
}
I have another API /members/${id} that returns the following json:
{
    id: ${id}
    values: ['bla bla bla',...]
}
I would like to call (GET) the api /foo/bars/100 , and then iterate over members and for each of them call (GET) /members/${id} and then build the result object.
I would like to obtain the following result:
{
    id: 100,
    members: [
        {
            memberID: 1,
            data: {
                id: 1,
                values: ['bla bla bla', ...],
            }
        },
        {
            memberID: 100,
            data: {
                id: 100,
                values: ['bla bla bla', ...]
            }
        }
    ]
}
What is the best pratice to obtain the result?
 
     
    