Following is my user schema in user.js model -
var userSchema = new mongoose.Schema({
local: {
name: { type: String },
I had a similar problem and I realized that by default mongo only supports one schema per collection. Either store your new schema in a different collection or delete the existing documents with the incompatible schema within the your current collection. Or find a way to have more than one schema per collection.