{
"_id" : "gteXreonYrQLToFNb",
"team" : "Pittsburg",
"League" : "NHL",
"team_id" : "duuA4Fh9xrg4HTm55",
"player_name" : "Crosby Sidney",
"player_position" : "Forward",
"games" : [
{
"match_id" : "m5beht7xLd3RvgRck",
"division" : "Regular Season",
"attending" : true
},
{
"match_id" : "m5beht7xLd3JvWRck",
"division" : "Regular Season",
"attending" : true
},
{
"match_id" : "m5be2t7xLd3JvgRck",
"division" : "Regular Season",
"attending" : flase
},
{
"match_id" : "m3beht7xLd3JvgRck",
"division" : "Regular Season",
"attending" : true
}
]
}
{
"_id" : "9mGSaqzHs6Wi9TR2B",
"team" : "Pittsburg",
"league" : "NHL",
"team_id" : "duuA4Fh9xrg4HTm55",
"player_name" : "Evgeni Malkin",
"player_position" : "Forward",
"games" : [
{
"match_id" : "7KdC65n3SWoCTukhN",
"division" : "Regular Season",
"attending" : false
}
]
}
The documents above are from MongoDB. I wondering how could I send this to Spacebards with just single helper, so the outcome would be pretty like this:
<table>
{{#each player_collection}}}
<tr><td>{{player_name}}</td><td>{{#each games}} {{match_id}} {{/each}}</td></tr>
{{/each}}
</table>