{"repo":"Meteor-Community-Packages/meteor-publish-composite","free":true,"listed":false,"github":"https://github.com/Meteor-Community-Packages/meteor-publish-composite","clone":"git clone https://github.com/Meteor-Community-Packages/meteor-publish-composite.git","description":"Meteor.publishComposite provides a flexible way to publish a set of related documents from various collections using a reactive join","language":"JavaScript","stars":548,"topics":["hacktoberfest","meteor","mongodb"],"license":"MIT","category":"data-pipelines","readme_excerpt":"meteor-publish-composite publishComposite(...) provides a flexible way to publish a set of related documents from various collections using a reactive join. This makes it easy to publish a whole tree of documents at once. The published collections are reactive and will update when additions/changes/deletions are made. Project This project differs from many other parent/child relationship mappers in its flexibility. The relationship between a parent and its children can be based on almost anything. For example, let's say you have a site that displays news articles. On each article page, you would like to display a list at the end containing a couple of related articles. You could use publishComposite to publish the primary article, scan the body for keywords which are then used to search for other articles, and publish these related articles as children. Of course, the keyword extraction and searching are up to you to implement. Found a problem with this package? See below for instructions on reporting. Installation Usage This package exports a function on the server: publishComposite(name, options) Arguments name -- string The name of the publication options -- object literal or callback function (supports async) An object literal specifying the configuration of the composite publication or a function that returns said object literal. If a function is used, it will receive the arguments passed to Meteor.subscribe('myPub', arg1, arg2, ...) (much like the func argument of Meteo","default_branch":null,"files":null,"tree":[],"storefront":"/r/Meteor-Community-Packages","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Meteor-Community-Packages/meteor-publish-composite/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}