nerd.js 291 Bytes Edit Raw Blame History 1 2 3 4 5 6 7 8 9 10 11 12 // app/models/nerd.js // grab the mongoose module var mongoose = require('mongoose'); // define our nerd model // module.exports allows us to pass this to other files when it is called module.exports = mongoose.model('Nerd', { name: { type: String, default: '' } });