Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8885153
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T21:14:21+00:00 2026-06-14T21:14:21+00:00

According the the meteor documentation, all users should be published to all clients if

  • 0

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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T21:14:22+00:00Added an answer on June 14, 2026 at 9:14 pm

    if you auto publish users collection without use subscribe

    if Meteor.isServer
    
        Meteor.publish null, ->
            Meteor.users.find {},
                fields:
                    username: 1
                    profile: 1
    

    if you want to subscribe specify users you can

    if Meteor.isServer
    
        Meteor.publish 'users-by-selector', (options) ->
            Meteor.users.find options, # options as selector like $in: name: 'john'
                fields: # use fields to only publish specify fields you want to send. 
                    username: 1
                    profile: 1
    
    if Meteor.isClient
    
        Meteor.autosubscribe ->
            options = Session.get 'your mongodb selector'
            Meteor.subscribe 'users-by-selector', options, ->
                console.log 'on Subscribe Complete Callback.'
                if Meteor.users.find().count()
                    Session.set 'specifyUsersLoaded', true
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

According to docs at http://code.google.com/p/minify/wiki/UriRewriting $min_serveOptions['rewriteCssUris'] = false; I should be able to add
according to the twitter api documentation http://dev.twitter.com/doc/get/statuses/user_timeline accessing the current logged in users timeline
According to http://developer.android.com/guide/practices/ui_guidelines/icon_design_status_bar.html - Status bar icons should be white without any color. Many
According to http://msdn.microsoft.com/en-us/library/ms535934(v=VS.85).aspx and http://msdn.microsoft.com/en-us/library/ms535262(v=VS.85).aspx , I should be able to do the following
According to the meteor docs, inserts block: On the server, if you don't provide
According to connects documentation the session should expire when the browser is closed: By
According to the PHP Documentation PDO::prepare() adds quotes to all your parameters so that
According to the Android docs Intent extra name must have a package prefix. I've
According to this question and the documentation of attr_readonly the following should be possible:
According to the docs, I should be able to handle key events like keypress

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.