Meteor: How to write a publish-function containing the username
问题 Note: Whole code can be found here: https://github.com/Julian-Th/crowducate-platform/ Currently, all items from an array are displayed in one single list instead of a separate list tag: I have a pub function, which works perfectly: Meteor.publish('editableCourses', function () { return Courses.find({"canEditCourse": { $in: [ this.userId ] } }); }); However, I want to use the username instead. So I tried the following with no result: Meteor.publish('editableCourses', function () { return