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. StringNumberBoolean, etc.

var mongoose = require('mongoose');

module.exports = mongoose.model('User', {

   email : String ,
   pwd : String

});

Leave a Comment