We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I am generating the the GraphQL schema at runtime and I'd wish to update the schema when an external modification is made.
Preferably I'd like to use the @Refreshable annotation as that is what is used elsewhere and can easily be triggered via a REST end-point.
@Refreshable
e.g
@Bean @Refreshable public GraphQL graphQL() { ... }
Unfortunately this is not possible currently due to GraphQL missing a default constructor.
The text was updated successfully, but these errors were encountered:
As a work-around I was able to achieve it by using
@Bean @Replaces(GraphQLInvocation.class) @Refreshable public GraphQLInvocation graphQLInvocation(GraphQL graphQL, GraphQLExecutionInputCustomizer graphQLExecutionInputCustomizer, @Nullable BeanProvider<DataLoaderRegistry> dataLoaderRegistry) { return new DefaultGraphQLInvocation(graphQL, graphQLExecutionInputCustomizer, dataLoaderRegistry); }
Sorry, something went wrong.
No branches or pull requests
Feature description
I am generating the the GraphQL schema at runtime and I'd wish to update the schema when an external modification is made.
Preferably I'd like to use the
@Refreshable
annotation as that is what is used elsewhere and can easily be triggered via a REST end-point.e.g
Unfortunately this is not possible currently due to GraphQL missing a default constructor.
The text was updated successfully, but these errors were encountered: