svasva / meteor-publish-with-relations

Meteor.js SmartPackage to publish associated collections at once.
162 stars 30 forks source link

Allow fields to have arrays of associated items. #3

Closed tmeasday closed 11 years ago

tmeasday commented 11 years ago

Allow you do do things like

  Meteor.publishWithRelations({
    handle: this,
    collection: Loops,
    mappings: [{
      collection: Profiles,
      key: 'profileIds'
    }]
  }

Where a loop looks like:

{_id: 'abcd', profileIds: ['xcvb', 'cvbb']}
svasva commented 11 years ago

Merging right away. Thanks Tom!