Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upIntrospection and complexity #462
Comments
This comment has been minimized.
This comment has been minimized.
|
We currently strip them, what's the use case? |
This comment has been minimized.
This comment has been minimized.
|
I was having troubles with the introspection until I removed or increased the complexity limit, so I was assuming it was applying there as well. I'd prefer not to have the complexity limit apply to introspection. If you already do that, perhaps there's some change I've made that's impacting here? |
This comment has been minimized.
This comment has been minimized.
|
I am having a similar problem, when I set a complexity limit, and reload my graphiql page, I get this error:
and the documentation panel in graphiql won't show my schema. I looked in generated.go if I could find something that I could use to exclude the schema introspection from the complexity limitation, but didn't find anything. When I remove or increase the complexity limit to >179, the above error goes away and graphiql display my schema in the documentation panel again. |
This comment has been minimized.
This comment has been minimized.
|
interesting. I get the same issue except I get a constant 422 response from the server. Increasing the value like rakete suggested solved the problem |
This comment has been minimized.
This comment has been minimized.
|
+1, set up the query complexity, but I still want to the user can fetch the schema with low complexity value. |
This comment has been minimized.
This comment has been minimized.
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This comment has been minimized.
This comment has been minimized.
|
I am still interested in this, so would like the issue to be kept open if that's ok. |
This comment has been minimized.
This comment has been minimized.
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This comment has been minimized.
This comment has been minimized.
|
Still interested |
This comment has been minimized.
This comment has been minimized.
|
I've solved the problem using a directive that makes the walker skip part of the tree. |
Is it possible to specify a complexity limit that doesn't apply to schema introspection? Or to manually set the complexity cost for schema introspection?
I took a look through the generated code, but didn't see any hooks relating to this (I may very well have missed it).