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
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using
graphql-java-toolstogether withgraphql-spring-boot-starterin 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
GraphQLSchemaServletProviderto the Spring context. This implementation returns a shared instance ofGraphQLSchemaand 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