Closed djett41 closed 5 months ago
Your application can provide its own GraphQlSource
bean for that. Right now, there is a small limitation in the Spring Boot auto-configuration where a schema file on disk is still required, even if it is empty. This limitation is considered under https://github.com/spring-projects/spring-boot/issues/33096
Other than that, Spring for GraphQL should support your use case just fine.
AbstractGraphQlSourceBuilder
has two sub-classes, one with the default way in which we initialize the GraphQLSchema
e.g. by parsing schema files, and another with a given GraphQLSchema
instance. You can probably use that as a base class, and override the initGraphQlSchema
method.
Hello! I have the following usecase and have been digging around but don't see any documentation that supports my usecase which requires generating a GraphQl schema at runtime. If anyone has seen this done before please point me in the right direction :-) I appreciate it!
Is this possible in spring-graphql at the moment? Thanks!