Meteor users 1.3 and collection helpers


#1

I’m using https://github.com/dburles/meteor-collection-helpers with Meteor 1.3 and want to attach some helper methods to Meteor.users but it’s not working. I assume due to scoping issues. What is the best practice to making this happen in 1.3 in terms of exporting and loading? It should probably be a global, so just stick it in main dir outside of imports or?

Meteor.users.helpers({
  hello() {
    return 'world';
  }
});

edit:

Created a file that will be “require” globally on client/server


#2
import { Meteor } from 'meteor/meteor';

export const Users = Meteor.users;


Users.helpers({
    fullname() {
        return this.profile.name.first + ' ' + this.profile.name.last;
    }
});