We use code first approach using GraphQL-SPQR in Spring. With SPQR, schema is generated during query time.
When I tried to integrate federation-jvm, I got this error.
Caused by: org.springframework.graphql.execution.MissingSchemaException: No GraphQL schema definition was configured.
at java.base/java.util.Optional.orElseThrow(Optional.java:403) ~[na:na]
at org.springframework.graphql.execution.DefaultSchemaResourceGraphQlSourceBuilder.initGraphQlSchema(DefaultSchemaResourceGraphQlSourceBuilder.java:141)
Hello
Without having some github repository that reproduces the error it is hard to guess what might be the underlying issue. I’m not familiar with graphql-spqr so unsure how well it integrates with the federation. It definitely should be possible but I don’t know how easy/hard it is.