meteor-subscription-scope
meteor-subscription-scope copied to clipboard
Scope queries on collections to subscriptions
At first glance, the example provided kinda turned me off, because it is overly complicated. It includes the (rather rare) case that a subscription adds a field to each document...
The reason is that we are deleting any fields starting in `_sub_` when querying local collections on the client, but this interferes also with maintenance of internal collection, so when...
Maybe something like `subscriptionHandle.collection[collectionName].find()` would be the same as `collection.find(subscriptionHandle.scopeQuery())`. I am not sure if this is really the best approach because subscriptions can be for multiple collections and then...