INNER CODE UNIT · JavaScript
Publication
Meteor-Community-Packages/meteor-publish-composite · lib/publication.js:7
class Publication {
constructor (subscription, options, args) {
check(options, {
find: Function,
children: Match.Optional(Match.OneOf([Object], Function)),
collectionName: Match.Optional(String)
})
this.subscription = subscription
this.options = options
this.args = args || []
this.childrenOptions = options.children || []
this.publishedDocs = new PublishedDocumentList()
this.collectionName = options.collectionName
this.promises = []
this.childrenPublication = []
}