Answer the question
In order to leave comments, you need to log in
Asynchronous Mongoose request?
process.nextTick(function() {
User.findOne({ 'local.email' : email }, function(err, user){}
...
Answer the question
In order to leave comments, you need to log in
This will delay the start of the asynchronous request. It makes little sense to write like this, I can’t even imagine in what exotic case such a solution might be needed.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question