1234567891011121314151617 |
- Meteor.publish('posts', function() {
- return Posts.find();
- });
- Meteor.publish('comments', function(postId) {
- check(postId, String);
- return Comments.find({
- postId: postId
- });
- });
- Meteor.publish('notifications', function () {
- return Notifications.find({
- userId: this.userId,
- read: false
- });
- });
|