You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We would like to whitelist some operations based on their operation name, even if they exceed the max query complexity. Is there a way to do this?
If not, could we submit a PR to do this, possibly by adding more fields to QueryComplexityInfo so that the maxQueryComplexityExceeded function can check if the given operation is in the whitelist?
public MaxQueryComplexityInstrumentation(int maxComplexity, Function<QueryComplexityInfo, Boolean> maxQueryComplexityExceededFunction) {
So I guess whats missing is enough "context information" to know what the query operation is etc..
graphql.execution.instrumentation.parameters.InstrumentationValidationParameters is present so what ever is in there could be passed on in the QueryComplexityInfo object say
Activity
bbakerman commentedon Sep 19, 2021
There is a function that is called to decide if an exception should be thrown
So I guess whats missing is enough "context information" to know what the query operation is etc..
graphql.execution.instrumentation.parameters.InstrumentationValidationParametersis present so what ever is in there could be passed on in theQueryComplexityInfoobject saySo yes a PR to do this would be great