Mongodb findOne () not return value nodejs
问题 Hi Guys i try to do some email verification after a user suscrib to my api but when i do user.FindOne(token), the user is find but i not able to get the value of the user in the database the return me a big ass array and i don't see wich value to choose. my code: ValidationFunction: const User = require('../models/User'); const Token = require('../models/Token'); module.exports = function (req, res, next) { const headToken = req.header('token'); const token = Token.findOne({ token: headToken