this.Documents = new Mongo.Collection("documents"); if (Meteor.isClient) { } if (Meteor.isServer) { Meteor.startup(function () { // startup code that creates a document in case there isn't one yet. }); }