0

我有一个基本查询来获取数据库中人员的电子邮件列表。当我通过控制台进行 console.log() 时,它运行良好,但在应用程序中却不行。

// this works in console.log() but not in the app
return memberProfile.findOne({memberId: Meteor.user()._id}).email

// this is how its meant to be, where we insert each appropriate user id
return memberProfile.findOne({memberId: this._id}).email

我仍然掌握 Meteor 的窍门,非常感谢您对学习它的帮助。

4

0 回答 0