Created
October 20, 2016 05:26
-
-
Save dabit3/5a5d94395dc56e266085072fe6c4df00 to your computer and use it in GitHub Desktop.
Apollo Tutorial - Model
This file contains hidden or 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
const Mongoose = require('mongoose'); | |
const PresidentSchema = Mongoose.Schema({ | |
name: String, | |
party: String, | |
term: String, | |
}); | |
const President = Mongoose.model('President', PresidentSchema); | |
module.exports = President; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment