code: function(req, res, next) {
        console.log('executing graphql query');
        if (req.url === '/graphql') {
          var schema = getGraphQLSchemaFrom(sails.models);
          require('express-graphql')({
              schema: schema,
              pretty: true
            })(req, res);
        } else {
          return next();
        }
      }
docs: myRequestLogger: function (req, res, next) { console.log("Requested :: ", req.method, req.url); return next(); }