Permalink
Browse files

Step 9.11: Add users publication

  • Loading branch information...
dotansimha authored and darkbasic committed Jan 24, 2017
1 parent d9d674c commit 5f970ebb88c9202d486ee782758e4d9a782a3479
Showing with 14 additions and 0 deletions.
  1. +14 −0 api/server/publications.ts
View
@@ -0,0 +1,14 @@
import { User } from './models';
import { Users } from './collections/users';
Meteor.publish('users', function(): Mongo.Cursor<User> {
if (!this.userId) {
return;
}
return Users.collection.find({}, {
fields: {
profile: 1
}
});
});

0 comments on commit 5f970eb

Please sign in to comment.