middleware/_modelIndex.js
function (cb) {

                let fields = Object.keys(req.linz.model.list.fields);

                // Work in the title field
                linz.api.model.titleField(req.params.model, 'title', (err, titleField) => {

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

                    fields.push(titleField);

                    const select = fields.join(' ');

                    query.select(select);

                    // If they've provided the `listQuery` static, use it to allow customisation of the fields we'll retrieve.
                    if (!req.linz.model.listQuery) {
                        return cb();
                    }

                    req.linz.model.listQuery(req, query, cb);

                });

            }
function (cb) {

                let fields = Object.keys(req.linz.model.list.fields);

                // Work in the title field
                linz.api.model.titleField(req.params.model, 'title', (err, titleField) => {

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

                    fields.push(titleField);

                    const select = fields.join(' ');

                    query.select(select);

                    // If they've provided the `listQuery` static, use it to allow customisation of the fields we'll retrieve.
                    if (!req.linz.model.listQuery) {
                        return cb();
                    }

                    req.linz.model.listQuery(req, query, cb);

                });

            }
function ( cb ) { let fields = Object . keys ( req . linz . model . list . fields ) ; // Work in the title field linz . api . model . titleField ( req . params . model , 'title' , ( err , titleField ) => { if ( err ) { return cb ( err ) ; } fields . push ( titleField ) ; const select = fields . join ( ' ' ) ; query . select ( select ) ; // If they've provided the `listQuery` static, use it to allow customisation of the fields we'll retrieve. if ( ! req . linz . model . listQuery ) { return cb ( ) ; } req . linz . model . listQuery ( req , query , cb ) ; } ) ; }
minimise the fields we're selecting
minimise the fields we re selecting