Answer the question
In order to leave comments, you need to log in
How to search by _Id in mongoose (mongodb)?
With a search like this:
Model.find({_id: "587b52b71b3e0e1c05dfc80d"}, (err, res) => {
console.log(res);
})
Answer the question
In order to leave comments, you need to log in
I have so:
User.find({ "username": identifier }).then((data) => {
console.log(data);
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question