How do you add a transform to the Meteor.users Collection?
I've tried: Users = new Meteor.Collection 'users'
but this breaks Meteor since the collection already exists.
I figured out how to hack it at least.
There is a _transform property attached to the Meteor.users collection just like all the other collections.
Just do:
Meteor.users._transform = function(user) {
// attach methods, instantiate a user class, etc.
// return the object
}
to hook it up! Cool!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With