Groups
Sign in
Groups
Mongoose Node.JS ODM
Conversations
Labels
About
Send feedback
Help
findOne query to uniquely identitfy the user
20 views
query
Skip to first unread message
Hugo Seleiro
unread,
Mar 22, 2017, 7:18:50 AM
3/22/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Mongoose Node.JS ODM
Could some one help me whit the query to identify my user ?
exports.fetchUser = (req, res) => {
User.findOne({/ ???? /}).exec((err, user) => {
if (err)
return res.status(400).json(err)
res.json({userData: user})
})
}
Reply all
Reply to author
Forward
0 new messages