We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 17f2c31 commit 6abafe7Copy full SHA for 6abafe7
src/index.ts
@@ -250,8 +250,8 @@ export default class GraphQLComponent<TContextType extends ComponentContext = Co
250
251
// Apply middleware more efficiently
252
if (this._middleware.length > 0) {
253
- for (const { name, fn } of this._middleware) {
254
- processedContext = await fn(processedContext);
+ for (const mw of this._middleware) {
+ processedContext = await mw.fn(processedContext);
255
}
256
257
0 commit comments