// This collection stores all the documents. // Note: not Documents, but this.Documents, because of the editing package (?) this.Documents = new Mongo.Collection("documents"); // This collection stores sets of users that are editing documents. EditingUsers = new Mongo.Collection("editingUsers"); Comments = new Mongo.Collection("comments"); Comments.attachSchema(new SimpleSchema({ title: { type: String, label: "Title", max: 200 }, body: { type: String, label: "Comment", max: 1000 }, docid: { type: String } }));