Because the #each changes the data context to the current element.
If you need a types list inside each of the Items , you can get the context of the parent data using ..
If types is an attribute of the parent context:
{{#each Items}} {{title}} {{#each ../types}} {{refId}} {{/each}} {{/each}}
If types is a template helper, you can pass the parent context as an argument to it:
{{
and use the context for your request.
Template.myTemplate.helpers({ types: function(parent) { // you now have the parent context here. // use parent._id etc. where you used this._id in the // "flat" version. } });
source share