Blame view

collections/collection.js 411 Bytes
0ccda7775   Ryan Glover   add support for E...
1
2
3
4
5
6
7
8
9
10
11
12
13
  Collection = new Meteor.Collection( 'collection' );
  
  Collection.allow({
    insert: () => false,
    update: () => false,
    remove: () => false
  });
  
  Collection.deny({
    insert: () => true,
    update: () => true,
    remove: () => true
  });
4440e38f5   Ryan Glover   add collection2 p...
14
15
16
17
18
19
20
21
22
  
  let CollectionSchema = new SimpleSchema({
    "owner": {
      type: String,
      label: "The ID of the owner of this document."
    }
  });
  
  Collection.attachSchema( CollectionSchema );