Is there a way to use explain() in mongoose. What is the equivalent statement in mongoose for db.collection.find().explain() (this works in mongodb terminal)? I couldn't find the answers in the doc
Not directly. However, what you can do is enable Mongoose's debug logging so that you can copy the query its executing and then paste it into a MongoDB shell and run explain() on it.
To enable Mongoose's debug logging to the console, add the following to your code:
mongoose.set('debug', true);