How to properly reload the schema in runtime #604
Unanswered
andrey-nakin
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm using
graphql-java-tools
together withgraphql-spring-boot-starter
in a Spring Boot application. I need to sometimes (infrequently) refresh the GraphQL schema.What is the proper way to do this?
I tried to add my own implementation of
GraphQLSchemaServletProvider
to the Spring context. This implementation returns a shared instance ofGraphQLSchema
and rebuilds it when needed. It seems to work but it somehow has broken the application. At least, some integration tests with mocked beans stopped passing.Beta Was this translation helpful? Give feedback.
All reactions