Query Scoping in Meteor


Summary of my bookmarked Github repositories from May 23rd, 2016

Github repositories

  • peerlibrary/meteor-subscription-scope

    The Meteor smart package "subscription-scope" enables query scoping on collections based on the documents published by a subscription. By adding this package to your Meteor application, both the client and server sides are extended with additional functionalities. The subscription handle returned from Meteor.subscribe contains a new method called "scopeQuery()", which limits the collection's documents to the current subscription. On the server side, the publish endpoint function is extended with "enableScope()", allowing clients to use scopeQuery() to restrict queries to the subscription. This package offers a simple yet powerful approach to scoping queries in Meteor applications, contrasting with more complex solutions like "find-from-publication."