We are getting xml feeds and update(upsert) feeding them to collection A.
Than these records should be inserted into B and if there is already same record with other source xml, just extend that record in B with duplicates field and push info about source to it.
I was writing methods for this yesterday and realized I am dumb and doing it wrong way.
Now I have it as cursorA.observe, added: and changed: callbacks and it is working as a charm, without need for any methods and you can even change it from mongo and it updates nicely, test nicely.
Is this correct meteor way? Cause it still feels little odd to run cursorA = find… so you can run observe as background task on server side.
And collection hooks seems to handle just meteor instance calls/etc, not mongo external stuff.
And there is plan to mess with DB from various sources.