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