Replies: 2 comments 3 replies
-
|
Hi @sbilello, Right now it will not be healthy for us to expose the |
Beta Was this translation helpful? Give feedback.
-
|
Hi @sbilello |
Beta Was this translation helpful? Give feedback.
-
|
Hi @sbilello, Right now it will not be healthy for us to expose the |
Beta Was this translation helpful? Give feedback.
-
|
Hi @sbilello |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone!
I was evaluating few options on how to change the code execution flow and eventually abort the execution and/or add custom logic.
The
Instrumentationis the recommended approachExample:
This would have the exception caught over here https://github.com/graphql-java/graphql-java/blob/master/src/main/java/graphql/execution/ExecutionStrategy.java#L294.
It is a little bit down the road and I would love to stop early the execution without allocating Objects or Threads and allocating more resources.
So I wrote a small prototype: master...sbilello:dgs-custom-annotation-prototype
I left some comments because we might come up with an open design that would allow the developer to add custom annotations with relative custom logic.
Maybe extend the
DgsSchemaProviderand/or all allow the developer to inject some custom beans implementing a newDgsInterfaceThanks for your review and the time spent answering my questions and comments @berngp @paulbakker @srinivasankavitha
P.S. I know that
RateLimitis addressed at thegatewaylevel but not all the GraphQL setup relies onFederation.Beta Was this translation helpful? Give feedback.
All reactions