Streamline Meteor Subscriptions with SmartQuery for Effortless Data Management

Summary of my bookmarked Github repositories from Nov 17th, 2015

Github repositories

  • meteor-utilities/SmartQuery

    SmartQuery is a Meteor package that simplifies the process of setting up subscriptions for Collection.find() calls. By wrapping the calls in a special function, SmartQuery automatically handles the subscription setup. On the client side, you can use SmartQuery.create() within a template helper to define the subscription. It returns an object with properties like the subscription, cursor, and functions to check if the subscription is ready, get the count, total count, and determine if there are more documents on the server. On the server side, you need to define security rules for each collection before publishing data. SmartQuery.addRule() allows you to specify a filter and fields function for each collection. Additionally, SmartQuery can be used with SubsManager.