Skip to content
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

Feature Request: Need API to limit query complexity / depth #231

Open
yookoala opened this issue Aug 7, 2017 · 5 comments
Open

Feature Request: Need API to limit query complexity / depth #231

yookoala opened this issue Aug 7, 2017 · 5 comments

Comments

@yookoala
Copy link

@yookoala yookoala commented Aug 7, 2017

As title suggest. Library user would want to have a way to evaluate a graphql query complexity and refuse queries that are too complex.

@djmcgreal
Copy link

@djmcgreal djmcgreal commented Mar 1, 2018

I believe https://www.npmjs.com/package/graphql-cost-analysis is the current JS library de jure. Potentially this doesn't go in the core go library?

@genert
Copy link

@genert genert commented Jan 18, 2019

Bump.

@Niondir
Copy link

@Niondir Niondir commented Nov 21, 2019

For bigger projects complexity is quiet an important feature. What are the plans to implement it?

My feeling is that there is not much new development at all on this library.

@sevenzhao
Copy link

@sevenzhao sevenzhao commented Aug 14, 2020

There is already an API to limit the query depth, but no API to limit the query complexity.
The system should be protected from attack by complex querys.
So there should be a API to limit query complexity.

@Hongbo-Miao
Copy link

@Hongbo-Miao Hongbo-Miao commented Jun 7, 2021

FYI, if need, in JavaScript world, today graphql-query-complexity is better than graphql-cost-analysis now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
7 participants