Use a named function for the middleware over an anonymous

It's making the investigation of performance issues easier.
This commit is contained in:
Olivier Tassinari 2018-02-12 11:22:55 +01:00 committed by Jesse Rosenberger
parent 0c6b1bd358
commit e5e543b125

View file

@ -36,7 +36,7 @@ export function graphqlExpress(
);
}
return (req: express.Request, res: express.Response, next): void => {
return function graphql(req: express.Request, res: express.Response, next): void {
runHttpQuery([req, res], {
method: req.method,
options: options,