I have the following code (that doesn’t work, but you get what I’m trying to do):
Meteor.publish('partnerScoreData', function() {
return UserScores.find({
userId: this.profile.partnerId
});
});
I’m trying to publish the document using a value that I have stored on a custom field that I added inside of the user’s profile, right next to firstName and lastName. How can I access this field without being able to the usual “Meteor.user().profile.partnerId” syntax?
Thanks so much!!