rethinkdb / horizon-docs

Other
24 stars 36 forks source link

cookbook entry: subscribing to changing data #103

Open deontologician opened 8 years ago

deontologician commented 8 years ago

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:

  1. A channel the user is subscribed to changes in any way
  2. 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)