Skip to content

Commit 7b9b1c1

Browse files
committed
fix: use ctx.getArgs() for GraphQL resolver args
1 parent 7d06965 commit 7b9b1c1

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/cache/custom-cache.interceptor.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ export class CustomCacheInterceptor implements NestInterceptor {
5555

5656
private getArgs(context: ExecutionContext): unknown[] {
5757
const ctx = GqlExecutionContext.create(context);
58-
const req = ctx.getContext().req;
59-
return req.body;
58+
return Object.values(ctx.getArgs());
6059
}
6160
}

0 commit comments

Comments
 (0)