次のシナリオがあります。コレクションSuppliersと別のInvitedがあります。現在、Invited.supplier = Supplier._id(構文が間違っている可能性があります)招待されたコレクションは、1対多の方法でサプライヤーを指します。
私のhtmlには、
<template name="mytemplate">
{{#each invited_list}}
{{supplier}}
{{f1}}
{{f2}}
{{/each}}
</template>
ヘルパー機能があります
Template.mytemplate.helpers({
invited_list : function(){
return Invited.find({"something"});
}
});
私のinvited_listの{{supplier}}に_idの代わりに{{Suppliers.name}}を表示したいと思います。私のオプションは何ですか?