| 310 | |
| 311 | // Runtime tags erase middleware types; `make` requires all their identifiers. |
| 312 | const middlewareChain = <Op extends GraphQL.Any>( |
| 313 | context: Context.Context<never>, |
| 314 | group: GraphQLGroup.GraphQLGroup<Op>, |
| 315 | operation: Op |
| 316 | ): MiddlewareChain<Op> => [...group.middlewares, ...operation.middlewares].map((tag) => Context.getUnsafe(context, tag)) |
| 317 | |
| 318 | // Steps `schedule` only for retryable `GraphQLClientError`s. Middleware |
| 319 | // errors and fatal errors end the retries before reaching it, so a custom |