-
-
Notifications
You must be signed in to change notification settings - Fork 672
New issue
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
directive graphql-rate-limit does not work #1569
Comments
Directives should be passed to the |
Thanks for your answers. I feel thought that the documentation is not very clear : |
Fair point. Maybe @carlocorradini can tell you more as he wrote this chapter (based on git blame). For now, try to use |
Sorry for the late reply, I'll check it ASAP 🥳 |
@gyl89 |
@gyl89 Can you provide a repository with a minimal reproducible code example, in order to debug the issue? |
Describe the Bug
@ratelimit directive does not seem to work (coming from the package graphql-rate-limit-directive)
To Reproduce
Define resolverClasses (including one mutation with @ratelimit), then to build the schema, use the code
Expected Behavior
When using "@ratelimit({ limit: 3, duration: 60 })" before a mutation, it should limit the rate at which the mutation can be called.
Logs
When building the schema through buildSchema:
Error parsing directive definition "@rateLimit({ limit: 3, duration: 60 })"
Environment (please complete the following information):
"graphql-rate-limit-directive": "2.0.4"
The text was updated successfully, but these errors were encountered: