nodemon - app crashed - waiting for file changes before starting
Mongoose expects you to specify types using the built-in constructor functions, which are named with capital letters, e.g. String
, Number
, Boolean
, etc.
var mongoose = require('mongoose');module.exports = mongoose.model('User', { email : String , pwd : String});