Skip to content

Instantly share code, notes, and snippets.

@gabrielhpugliese
Created July 15, 2014 17:44
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 gabrielhpugliese/2b3df9ae16ca60e1da8d to your computer and use it in GitHub Desktop.
Save gabrielhpugliese/2b3df9ae16ca60e1da8d to your computer and use it in GitHub Desktop.
Books = new Meteor.Collection("books", {
schema: {
title: {
type: String,
label: "Title",
max: 200
},
author: {
type: String,
label: "Author",
autoValue: function () {
return Meteor.userId();
}
},
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment