Hi all,
I am trying to get article specific data from multiple collections. I found publish composite makes it easy to get that data easily. I have tried it with blaze works fine with it, and now I am trying to get it working with react. I am facing problem while using it with react. I got my main data in json article field and now not getting how to get other data related to that. Here is my code as follows:
getMeteorData(){
return {
articles: Articles.find().fetch(),
author: Meteor.users.findOne(this.authorId)
}
},
render(){
return (
<div>
{this.data.articles.map(function(article){
console.log(article)
return <ShortArticle key={article._id} article={article} author={author.profile.name} />
})}
</div>
);
}
Any suggestion or help is welcome.