diegomvh / angular-odata

Client side OData typescript library for Angular
https://www.npmjs.com/package/angular-odata
MIT License
50 stars 14 forks source link

feature request: consolidate batch request #18

Closed koshdim closed 4 years ago

koshdim commented 4 years ago

as shown in example

batch.post(() => {
      airports.get().subscribe(console.log);
      airport.get().subscribe(console.log);
      people.get({withCount: true}).subscribe(console.log);
    }).subscribe();

batch request subscriptions and inner request subscriptions are different, therefore if one needs to wait until all inner requests complete it is a bit difficult to implement, as batch completes faster than inner requests. would be great to have one observable that completes when all inner requests finish