mongodb - how to display multi-dimensional data from collection in meteor -


how show multidimensional data collection. have this

links.insert({ cat:[{     name:'js',     sub:[{         name:'angularjs',         links:[{             url:'something.com'},{url:'another.com'}]         },{         name:'meteorjs',         links:[{             url:'something.com'},{url:'another.com'}]         }]     }] }); 

retrieving data in helper this

'links':function(){     return links.find();  // tried links.find().fetch() 

one option use separate helpers specific data. want use single helper receive whole data , show like

{{‪#‎each‬ links}}     {{cat.name}} : {{sub.name}} : {{links.url}} {{/each}} 

have tried:

{{#each link}}     {{cat.[0].name}}  :  {{cat.[0].sub.[0].name}}  :  {{cat.[0].sub.[0].links.[0].url}} {{/each}} 

Comments

Popular posts from this blog

javascript - How to synchronize the Three.js and HTML/SVG coordinate systems (especially w.r.t. the y-axis)? -

javascript - How do I find how many occurences are there of a highlighted string, and which occurence is it? -

java - Reading data from multiple zip files and combining them to one -