-
I'm creating a new GraphQL API and I want to keep the query complexity as low as possible. So I set it to 50 to see when I need to increase it. But pretty soon I noticed that introspection was no longer working in GraphiQL because the introspection query is pretty complex. Is there a way to only enforce complexity checks when the query is not an introspection query? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Such an option does not exist currently, but it would make sense to me. In terms of implementation, we could simply not count introspection fields. That way, a query mixing introspection and other fields can still be rightfully rejected. Feel free to create an issue, or even better a pull request 😉 |
Beta Was this translation helpful? Give feedback.
Such an option does not exist currently, but it would make sense to me. In terms of implementation, we could simply not count introspection fields. That way, a query mixing introspection and other fields can still be rightfully rejected.
Feel free to create an issue, or even better a pull request 😉