Javascript – Mongoose findOne always return null
This is the user snippet const mongoose = require('mongoose'); const userSchema = new mongoose.Schema({ name: { type: String, required: true }, lastName: { type: String, required: true }, email: { type: String, required: true, unique: true }, password: { type:…