mirror of
https://github.com/vale981/apollo-server
synced 2025-03-06 10:11:40 -05:00
Use a named function for the middleware over an anonymous
It's making the investigation of performance issues easier.
This commit is contained in:
parent
0c6b1bd358
commit
e5e543b125
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue