Skip to content

Commit

Permalink
Allow fields to have arrays of associated items.
Browse files Browse the repository at this point in the history
  • Loading branch information
tmeasday committed Mar 26, 2013
1 parent ab53930 commit 285fd8f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions publish_with_relations.coffee
Expand Up @@ -20,6 +20,8 @@ Meteor.publishWithRelations = (params) ->
else
objKey = mapping.key
mapFilter._id = obj[mapping.key]
if _.isArray(mapFilter._id)
mapFilter._id = {$in: mapFilter._id}
_.extend(mapFilter, mapping.filter)
_.extend(mapOptions, mapping.options)
if mapping.mappings
Expand Down

0 comments on commit 285fd8f

Please sign in to comment.