Hello, so I am working on learning Meteor with the “Your First Meteor Application” book and I because its a bit outdated already, it does not take into account the, what I assume is new environment set up of having a certain folder & files for server and another for client side things. Now, I made it to the part where I just create my Mongo database with the line ‘PlayerList = new Mongo.Collection(‘players’);’ and that works fine in the client main.js. But just for testing purposes I opened up a new tab and went to the server and tried to access the ‘documents’ I successfully added on one tab to see if it persisted, and nope, on the new tab the DB is empty. So I attempted to put the same code in the server-side main.js, but now the client/DOM is putting out this error: ‘Uncaught ReferenceError: PlayerList is not defined(…)’.
I was wondering how I should go about fixing this or what practices I should be using in this case? Any help would be great, thanks in advance