From 5266764943d407f5a075cd7b84d0cbc11c6e1c0f Mon Sep 17 00:00:00 2001 From: Artem Zakharchenko Date: Fri, 6 Oct 2023 18:17:08 +0200 Subject: [PATCH] feat(RequestHandler): rename "extendInfo" to "extendResolverArgs" --- src/core/handlers/GraphQLHandler.ts | 2 +- src/core/handlers/HttpHandler.ts | 2 +- src/core/handlers/RequestHandler.ts | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) 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, })