This is the code im using: (its located in a ValidatedMethod function, on the server)
console.log('Orgs:', OrganisationsDB.find({}).fetch());
console.log('Accs:', AccountsDB.find({}).fetch());
console.log('Users:', Users.find({}).fetch());
I can assure you that all 3 collections have data in them, as I can see them with RoboMongo. Whenever I check the console in the web browser, all of them return an array of objects, except, the Organisations one.
I also did some test example where I pretty much did this code, not only for 3 collections shown above, but for all 10 of mine, and they all printed their data, except for again, the Organisations one, which reports the array is empty.
If I query it in RoboMongo, it works, and displays the data, but not in meteor.
Oddly enough, I have this popup menu, using React Router, and if I view this “popup page” on top of another page, Organisations prints its data. However, if I view this page alone, it doesn’t work.
Also, I doubt its a subscription problem, as I can load data from other collections that have absolutely no relation to this popup page, but 2/3 collections related to this popup page work, the 1/3 being the Organisations.
Note that my Organisations Collection works everywhere else except this one page, weird.
What might cause this?