Last active
August 29, 2015 14:04
-
-
Save shrop/7969833edd26ae52eacd to your computer and use it in GitHub Desktop.
Declare a schema and collection at the same times! #meteorjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Posts = new Meteor.Collection("posts", { | |
schema: new SimpleSchema({ | |
title: { | |
type: String, | |
optional: true | |
}, | |
description: { | |
type: String, | |
optional: true | |
}, | |
posted: { | |
type: Date, | |
optional: true | |
} | |
}) | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment