Node.js+MongoDB can't save hashed password
I am trying to save password in MongoDB but have error: Error: User validation failed: password: Path `password` is required. Model: const {Schema, model} = require('mongoose'); const UserSchema = new Schema({ email: {type: String, unique: true, required: true}, password: {type:…