Skip to content

Instantly share code, notes, and snippets.

@mhinton
Last active August 29, 2015 14:07
Show Gist options
  • Save mhinton/0e7ce4f8e845b42ed9f9 to your computer and use it in GitHub Desktop.
Save mhinton/0e7ce4f8e845b42ed9f9 to your computer and use it in GitHub Desktop.
Meteor Publication
Meteor.publish("logs", function (filter) {
var cursor = Logs.find(filter);
cursor.observe({
added: function(doc) {
console.log("observe added");
doc.display = true;
}
});
this.ready();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment