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

  • SEARCH
  • Home
  • 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 9223167
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T04:00:41+00:00 2026-06-18T04:00:41+00:00

I am trying to sync my server collection with my client collection. On the

  • 0

I am trying to sync my server collection with my client collection.

On the Server:

var JobLoopUsers = new Meteor.Collection("job-loop-users")

Meteor.publish("user-data", function(){
  JobLoopUsers.findOne({meteorUserId : 1});
});

On the Client:

Meteor.subscribe("user-data");

JobLoopUsers = new Meteor.Collection("job-loop-users");

I insert some test data on the server using meteor.call

On the server when I do

console.log( JobLoopUsers.find().fetch()[0] )

it displays:

 {meteorUserId: 1
   testData: "My Test Data Here"}

When I do

console.log( JobLoopUsers.find().fetch())

on the client I just get an empty array.

How do I sync up these two collections?

The Meteor Docs say :

When you subscribe to a record set, it tells the server to send records to the client. The client stores these records in local Minimongo collections, with the same name as the collection argument to set. Meteor will queue incoming attributes until you declare the Meteor.Collection on the client with the matching collection name.

Do I need to do an autosubscribe?

  • 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-18T04:00:43+00:00Added an answer on June 18, 2026 at 4:00 am

    These two are automatically sync’d in realtime. What might be happening is the data you are inserting doesn’t have a meteorUserId:1 and it is not published to the client, and you’re searching for all records whether they have meteorUserId:1 or not.

    To fix this try and alter:

    Meteor.publish("user-data", function(){
      JobLoopUsers.find({});
    });
    

    You don’t have to do an autosubscribe unless you need a subscription to change for some reason

    You may also be calling console.log( JobLoopUsers.find().fetch()) too soon, try waiting a second or two, replace it with:

    Meteor.setTimeout(function() { console.log( JobLoopUsers.find().fetch()) }, 3000);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to implement unidirectional sync from Server to Client, both running SQLExpress
I'm trying to sync data from a CRM server back to a separate service,
I am trying to sync the data from iPhone to server but didn't get
i'm new to Microsoft Sync Framework and trying to synchronise an sqlite db with
I'm trying to create WCF to sync my mobile device with my server. When
I am trying to create a simple SSL client and server in Ruby. But
We are trying to convert out old school client server application into a N-Tier
I'm trying to create a sync between my mobile and database server. I am
I'm trying to implement a password encryption algorithm used in Funambol mobile sync server
I am trying to use Microsoft Sync Framework 2.1 on a SQL Server database.

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.