jstests/core/sbe_plan_cache_autoparameterize_collscan.js
// each field is optional, runs the corresponding find command and returns the results as an array.
each field is optional, runs the corresponding find command and returns the results as an array.
each field is optional runs the corresponding find command and returns the results as an array .
function runFindCommandFromShapeDoc(shape) {
    let cursor = coll.find(shape.query, shape.projection);
    if (shape.sort) {
        cursor = cursor.sort(shape.sort);
    }
    return cursor.toArray();
}
function runFindCommandFromShapeDoc ( shape ) { let cursor = coll . find ( shape . query , shape . projection ) ; if ( shape . sort ) { cursor = cursor . sort ( shape . sort ) ; } return cursor . toArray ( ) ; }
each field is optional, runs the corresponding find command and returns the results as an array.
each field is optional runs the corresponding find command and returns the results as an array .