lib/collections.js:
Meetings = new Meteor.Collection('meetings');
server/publications.js:
Meteor.publish("meetings", function () {
return Meetings.find({"participants":this.userId}, {"log":0});
});
client/homeLoggedIn.js:
Meteor.subscribe("meetings");
...
var data = Meetings.find().fetch();
The problem is that data
shows the log
field. What am I missing?
Thanks all
—t3db0t