Skip to content
This repository has been archived by the owner on Mar 20, 2023. It is now read-only.

Use a named function for the middleware over an anonymous #415

Merged
merged 2 commits into from
Feb 18, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ function graphqlHTTP(options: Options): Middleware {
throw new Error('GraphQL middleware requires options.');
}

return (request: $Request, response: $Response) => {
return function graphqlMiddleware(request: $Request, response: $Response) {
// Higher scoped variables are referred to at various stages in the
// asynchronous state machine below.
let params;
Expand Down