Open
Description
UserSchema is missing "_id" key thus it is throwing error while creating the new user.
please modify the UserSchema like below:
var UserSchema = new Schema({
_id:{
type:String
},
email: {
type: String, required: true,
trim: true, unique: true,
match: /^\w+([.-]?\w+)*@\w+([.-]?\w+)*(\.\w{2,3})+$/
},
firstName: {type: String},
lastName: {type: String}
});
Metadata
Metadata
Assignees
Labels
No labels