As an example, I have a shared directory called /collections that contains a file named client_collections.js, which looks like this:
client_collections = new Mongo.Collections('client_collections');
On the client, in an event, I attempt to use
client_collections, but I get an exception when trying to do so.
What’s the best way to make sure a collection exists?
I think I’ve seen something like a check on Meteor.startup, but can’t find an example – besides, even if this is one way to make sure a collection exists, is this the right way?