I follow an almost exact example of Model.count () from Mongoose docs:
User.count({ type: 'jungle' }, function (err, count) { console.log('I do not ever run'); });
This should print "I never run." Instead, it returns a Query object that should not happen, according to the docs, as I provide a callback. How to start callback function? Are there any circumstances where the callback does not start?
Using mongoose@3.6.17. Thank you!
source share