Using this.added in Meteor
问题 I'm trying to transform a publication, and this is my code: Meteor.publish('appointments.waiting', function () { var self = this, count = 0; Appointments.find().forEach(function (appointment) { var patients = Patients.find({_id: appointment.patient_id}).fetch(); var first_name = patients[count].profile.first_name, middle_name = patients[count].profile.middle_name, surname = patients[count].profile.surname, name = surname + ', ' + first_name + ' ' + middle_name; self.added('appointments',