Created
August 25, 2015 09:43
-
-
Save flootr/f7d9b734a01505733c85 to your computer and use it in GitHub Desktop.
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
```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