Skip to content

Instantly share code, notes, and snippets.

@flootr
Created August 25, 2015 09:43
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 flootr/f7d9b734a01505733c85 to your computer and use it in GitHub Desktop.
Save flootr/f7d9b734a01505733c85 to your computer and use it in GitHub Desktop.
```javascript
var PandaSchema = new Schema({
name: {
type: String,
required: true
},
age: {
type: Number,
min: 9,
max: 99
},
mood: {
type: String,
enum: ["happy", "sleepy"]
}
});
var panda = {
name: "Hugo"
};
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment