-
-
Notifications
You must be signed in to change notification settings - Fork 553
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
A way to compute/limit query complexity #902
Comments
Let's say a default field complexity is 1. Seems to me that we'll have to understand pagination at the step of complexity computation. I don't think there's a defined pagination API yet. |
I'm a new one here, might be completely wrong :D |
Good article on this topic: https://www.apollographql.com/blog/securing-your-graphql-api-from-malicious-queries-16130a324a6b/ |
Closing this in favour of #960 |
Depth limiting would certainly help, but it does not really secure you. I would also like to be able to reject a query that would result in returning thousands of objects. I.e. I imagined something like https://github.com/pa-bru/graphql-cost-analysis |
Sorry @MeRuslan , by closing this issue I didn't mean to imply that we shouldn't implement cost query limits, just that I wanted to consolidate the different approaches to handling malicious queries into one issue. I've included your comment there. |
A basic protection against malicious requests / scraping.
I'd love to see some means to:
The text was updated successfully, but these errors were encountered: