According the the meteor documentation, all users should be published to all clients if the autopublish package is installed.
http://docs.meteor.com/#meteor_users
I have the autopublish package installed, but using forEach
on Meteor.users
only lists the currently logged in user.
Is there a more correct way to list all the users on the client by using coffeescript?
Here is an excerpt from Meteor's Parties example:
// in server.js
Meteor.publish("directory", function () {
return Meteor.users.find({}, {fields: {emails: 1, profile: 1}});
});
// in client.js
Meteor.subscribe("directory");
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