Commit fb9f19b8de97962c258db7a2f80caebeda20defa
Exists in
master
Merge branch 'feature/add_schemas_#8' into v3.0.0
Closes #8
Showing
3 changed files
Show diff stats
.meteor/packages
.meteor/versions
collections/collection.js
... | ... | @@ -11,3 +11,12 @@ Collection.deny({ |
11 | 11 | update: () => true, |
12 | 12 | remove: () => true |
13 | 13 | }); |
14 | + | |
15 | +let CollectionSchema = new SimpleSchema({ | |
16 | + "owner": { | |
17 | + type: String, | |
18 | + label: "The ID of the owner of this document." | |
19 | + } | |
20 | +}); | |
21 | + | |
22 | +Collection.attachSchema( CollectionSchema ); | ... | ... |