diff --git a/src/core/handlers/GraphQLHandler.ts b/src/core/handlers/GraphQLHandler.ts index 77d9fe302..0c3e56e3b 100644 --- a/src/core/handlers/GraphQLHandler.ts +++ b/src/core/handlers/GraphQLHandler.ts @@ -156,7 +156,7 @@ Consider naming this operation or using "graphql.operation()" request handler to ) } - protected extendInfo(args: { + protected extendResolverArgs(args: { request: Request parsedResult: ParsedGraphQLRequest }) { diff --git a/src/core/handlers/HttpHandler.ts b/src/core/handlers/HttpHandler.ts index 07bde4b90..963814785 100644 --- a/src/core/handlers/HttpHandler.ts +++ b/src/core/handlers/HttpHandler.ts @@ -136,7 +136,7 @@ export class HttpHandler extends RequestHandler< : isStringEqual(this.info.method, actualMethod) } - protected extendInfo(args: { + protected extendResolverArgs(args: { request: Request parsedResult: HttpRequestParsedResult }) { diff --git a/src/core/handlers/RequestHandler.ts b/src/core/handlers/RequestHandler.ts index e6a705a0b..8369ec233 100644 --- a/src/core/handlers/RequestHandler.ts +++ b/src/core/handlers/RequestHandler.ts @@ -167,7 +167,7 @@ export abstract class RequestHandler< }) } - protected extendInfo(_args: { + protected extendResolverArgs(_args: { request: Request parsedResult: ParsedResult }): ResolverExtras { @@ -211,7 +211,7 @@ export abstract class RequestHandler< // since it can be both an async function and a generator. const executeResolver = this.wrapResolver(this.resolver) - const resolverExtras = this.extendInfo({ + const resolverExtras = this.extendResolverArgs({ request: args.request, parsedResult, })