HTML ページで Minimongo の Products コレクションにアクセスしようとしています。ブラウザ コンソールで入力Products.findOne();
すると、製品が返されます。
ただし、テンプレート ヘルパーから製品を返そうとすると、未定義になります。誰か考えますか?
Template.Tires.onRendered(function() {
console.log(Products.findOne());
//after I return a product item, I need to modify its properties manually after it has loaded into the client
});