I’m publishing record set from ‘users’ collection to the ‘friends’ client collection.
I want to update ‘friends’ collection at the client and that the updates will be applied at the server to the ‘users’ collection.
I realised that it isn’t possible and I’m getting the error: update failed: Method not found.
Does someone have a solution for this? or a better approach?
I want to avoid from create Meteor.method and a different “stub” at the client that will use the “friends” collection.
How did you get it? I mean how your publish cursor know that data from “Users” should be megred with “Friends” on the client?
Your client side collection doesnt live on a server side. Your MyCollection.update(...) = Meteor.call('/mycollection/update/', ...) - Meteor makes it for you when you define collection on a server