This data model works pretty well, But it has an one major weak point. Which of the following do you think it is? { "_id": "one", "text": "Meteor - Full Stack Javascript Platform", "parent": null } { "_id": "two", "text": "Why do you say so?", "parent": "one" } {{each getComments}} {{text}} {{if haveChildren}} {{> comments}} {{/if}} {{/each}} Template.comments.helpers({ getComments: function(){ var parent = this._id || null; return Comments.find({parent: parent}); }, haveChildren: function(){ return Comments.find({parent: this._id}).count() > 0; } })
Meteor - JavaScript Web Framework MCQs
This data model works pretty well, But it has an one major weak point. Which of the following do you think it is? { "_id": "one", "text": "Meteor - Full Stack Javascript Platform", "parent": null } { "_id": "two", "text": "Why do you say so?", "parent": "one" } {{each getComments}} {{text}} {{if haveChildren}} {{> comments}} {{/if}} {{/each}} Template.comments.helpers({ getComments: function(){ var parent = this._id || null; return Comments.find({parent: parent}); }, haveChildren: function(){ return Comments.find({parent: this._id}).count() > 0; } })
Answer
Correct Answer:
Explanation:
Note: This Question is unanswered, help us to find answer for this one
Meteor - JavaScript Web Framework Skill Assessment