how can I change some fields in a collection that is also in the server but only locally.
for example, I want to change my user name but only locally (in Meteor.users), suppose is to give a preview functionality
I do not want to have to use a null collection because that would add more complexity to my application
When executed the following method I can see for a moment the changes, I want to achieve some way to keep it
Sadly, there is no reliable way to do that. You can try to toy with Meteor.users._collection, which represents the local cache, but you will soon realize it is modified by Meteor in unpredictable ways. Use a null collection with an observer: it doesn’t add so much complexity and is surprisingly fast.
Looks good. Supposedly if I were to run this Meteor.users.findOne and move it into explicitly local collection within tracker it would keep local collection updated.