Replies: 1 comment 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, Right now it will not be healthy for us to expose the |
Beta Was this translation helpful? Give feedback.
-
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
Instrumentation
is 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
DgsSchemaProvider
and/or all allow the developer to inject some custom beans implementing a newDgsInterface
Thanks for your review and the time spent answering my questions and comments @berngp @paulbakker @srinivasankavitha
P.S. I know that
RateLimit
is addressed at thegateway
level but not all the GraphQL setup relies onFederation
.Beta Was this translation helpful? Give feedback.
All reactions