The explain() command is used to provide information of all the query plans. The possible models are as follows:
'queryPlanner',
'executionStats'
'allPlansExecution'.
More information about MongoDB find queries