I have “Categories” collection on the server and the client,
I have this pub on the server:
Meteor.publish('categories', function() {
return Categories.rawCollection().distinct('category');
});
and I have this sub on the client:
this.subscribe('categories');
let categories = Categories.find()
I think it should work, but it doesn’t.
so what is wrong with this code?