i have 2 different publications that subscribe to the same document but different fields. eg.
Meteor.publish('myAvatar',function(){
return User.find({
_id : Meteor.userId()
}, {
fields : {
"profile.images.avatar" : 1
}
});
});
Meteor.publish('myBanner',function(){
return User.find({
_id : Meteor.userId()
}, {
fields : {
"profile.images.banner" : 1
}
});
});
when i do
if (Meteor.userId()){
this.subscribe("myAvatar");
this.subscribe("myBanner");
}
result i get
{
profile : {
images : {
avatar : [...]
}
}
}
what i expect
{
profile : {
images : {
avatar : [...]
banner : [...]
}
}
}
the second subscription fields doesn’t extend to 1st subscription data
currently using 1.6-beta.31
with latest node & npm
any clue?