We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@Injectable() export class GqlThrottlerGuard extends ThrottlerGuard { getRequestResponse(context: ExecutionContext) { const gqlCtx = GqlExecutionContext.create(context); const ctx = gql.getContext(); return { req, ctx.req, res: ctx.res }; // ctx.request and ctx.reply for fastify } }
Where is the request pulled from? Where does gqlCtx get used? What is the gql variable as it's undefined anyways.
The code example is quite literally useless, the docs may as well point to documentation about getRequestResponse.
The text was updated successfully, but these errors were encountered:
Apologies, the nest docs got updated, but I missed updating the README for this. I'll get that fixed shortly
Sorry, something went wrong.
Cheers, I'll leave this ticket for you to close.
service
Successfully merging a pull request may close this issue.
Where is the request pulled from? Where does gqlCtx get used? What is the gql variable as it's undefined anyways.
The code example is quite literally useless, the docs may as well point to documentation about getRequestResponse.
The text was updated successfully, but these errors were encountered: