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 have just upgraded from HotChocolate 13 to 15 and got through all the breaking changes. The one feature we've lost, though, is in our interceptor we are evaluating the HttpHeaders and if the request is coming from one of our internal apps, we were calling:
requestBuilder.SkipComplexityAnalysis();
This is obviously not here anymore and not part of the OperationRequestBuilder. I see how we can opt out globally, but we would like to avoid that as we have APIs open to other teams that aren't ours.
The solution you'd like
Short of having 2 hosted instances of our GraphQL server, one that bypasses cost calculations and another that doesn't, is there (or can there be) some feature that I'm missing that would allow me to have the functionality as we did in version 13 and prior and be able to disable cost analysis on a per-request basis?
The text was updated successfully, but these errors were encountered:
With this you cannot only opt-out but also give users different costs, for instance if you have consumers that paid for your service you could allow them to execute more complex operations and so forth.
Product
Hot Chocolate
Is your feature request related to a problem?
We have just upgraded from HotChocolate 13 to 15 and got through all the breaking changes. The one feature we've lost, though, is in our interceptor we are evaluating the HttpHeaders and if the request is coming from one of our internal apps, we were calling:
This is obviously not here anymore and not part of the
OperationRequestBuilder
. I see how we can opt out globally, but we would like to avoid that as we have APIs open to other teams that aren't ours.The solution you'd like
Short of having 2 hosted instances of our GraphQL server, one that bypasses cost calculations and another that doesn't, is there (or can there be) some feature that I'm missing that would allow me to have the functionality as we did in version 13 and prior and be able to disable cost analysis on a per-request basis?
The text was updated successfully, but these errors were encountered: