Skip to content

Instantly share code, notes, and snippets.

@mplatts
Last active Apr 10, 2016
Embed
What would you like to do?
templates2 - 1
# lib/collections/games.coffee
@Games = new Mongo.Collection('games')
# client/main.coffee
Meteor.subscribe 'teams'
Meteor.subscribe 'games'
# server/publications.coffee
Meteor.publish 'teams', -> Teams.find()
Meteor.publish 'games', -> Games.find()
@milkers

This comment has been minimized.

Copy link

@milkers milkers commented Jun 20, 2015

I think publications.coffee should also contain a line for teams like the previous.
Like;

server/publications.coffee

Meteor.publish 'teams', -> Teams.find()
Meteor.publish 'games', -> Games.find()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment