middleware/_modelIndex.js
function (cb) {

                req.linz.model.getQuery(req, filters, function (err, result) {

                    if (err) {
                        return cb(err);
                    }

                    query = result;

                    return cb(null);

                });

            }
function (cb) {

                req.linz.model.getQuery(req, filters, function (err, result) {

                    if (err) {
                        return cb(err);
                    }

                    query = result;

                    return cb(null);

                });

            }
function ( cb ) { req . linz . model . getQuery ( req , filters , function ( err , result ) { if ( err ) { return cb ( err ) ; } query = result ; return cb ( null ) ; } ) ; }
create the query
create the query