i want to print query value in template using RegisterHelper see my code what i want, but kindly my question is that my function is returning which how i can print it on html template
Template.registerHelper("itemLookup", function(exerciseMasterId){
var abc= customexecise.find({'exerciseMasterId': exerciseMasterId})
console.log("abc=============",abc)
return abc
});
{{#each itemLookup }}
{{name}}
{{/each}}
i
it is not printing value of name kindly correct what it should be it is returning still