Different publications on the same object (second level property)


#1

I ran into a somewhat ‘strange’ problem, where I have two publications on a document, but where one publication returns the ‘social.friends’ property and the second returns the ‘social.following’ property. Turns out the document gets overwritten, causing only the ‘social.following’ property to be sent to the client.

I’ve heard somewhere that this is “normal” behaviour, but I was wondering if there was a way to solve this?

Thanks in advance


#2

This is a limitation of meteor’s merge box. Only top level fields are merged so any deeper fields are overwritten.

shameless plug… Since you are integrating social features you might check out my set of packages that would save you a lot of work. https://atmospherejs.com/socialize