Skip to content

Instantly share code, notes, and snippets.

@shrop
Last active August 29, 2015 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shrop/7969833edd26ae52eacd to your computer and use it in GitHub Desktop.
Save shrop/7969833edd26ae52eacd to your computer and use it in GitHub Desktop.
Declare a schema and collection at the same times! #meteorjs
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