Mongodb – Mongoose validate only one path
I have the following long schema: const mySchema = new mongoose.Schema({ // some stuff, firstName, lastName ... etc password: { type: String, minLength: 8, maxLength: 120, } }) And I am inside one of the routes, I want to run…