src/mongo/shell/explainable.js
/**
         * Performs reformatting for an explain from a single mongod. Infers whether the explain is
         * a find explain or an aggregate explain.
         */
Performs reformatting for an explain from a single mongod. Infers whether the explain is
a find explain or an aggregate explain.
Performs reformatting for an explain from a single mongod . Infers whether the explain is a find explain or an aggregate explain .
function doUnshardedReformatting(fullExplain, fieldsToKeep) {
            if (fullExplain.hasOwnProperty("stages")) {
                return doAggReformatting(fullExplain, fieldsToKeep);
            }
            return doFindReformatting(fullExplain, fieldsToKeep);
        }
function doUnshardedReformatting ( fullExplain , fieldsToKeep ) { if ( fullExplain . hasOwnProperty ( "stages" ) ) { return doAggReformatting ( fullExplain , fieldsToKeep ) ; } return doFindReformatting ( fullExplain , fieldsToKeep ) ; }
Performs reformatting for an explain from a single mongod.
Performs reformatting for an explain from a single mongod .
// The presence of a top-level "stages" array identifies that this is aggregation // explain output from a mongod. // If we are not in any of the other special cases, then assume that this is a find // explain from a mongod.