The basic problem is that the user document has some array containing channel ids they are subscribed to. The end result we want is an observable that emits a new array of channel objects whenever:
A channel the user is subscribed to changes in any way
A channel is added or removed from the array of subscribed channels.
This is kind of a tricky application of observables, so it might be nice to put it into a cookbook page (or whatever we're calling it)
I outlined a strategy here: https://discuss.horizon.io/t/advanced-queries/171/3?u=josh
The basic problem is that the user document has some array containing channel ids they are subscribed to. The end result we want is an observable that emits a new array of channel objects whenever:
This is kind of a tricky application of observables, so it might be nice to put it into a cookbook page (or whatever we're calling it)