leangen / graphql-spqr-spring-boot-starter

Spring Boot 2 starter powered by GraphQL SPQR
Apache License 2.0
276 stars 68 forks source link

Is graphql-spqr-spring-boot-starter 1.0.1 compatibile with spring boot 3.2.4? #146

Closed lekhalingeshwar closed 6 months ago

lekhalingeshwar commented 7 months ago

I have defined the annotations in my project and it was working fine till graphql-spqr-spring-boot-starter 0.0.4 and springboot 2.4.15. Once I updated to the latest, I get the following exception,

Caused by: java.lang.IllegalStateException: At least one top-level operation source must be registered

lekhalingeshwar commented 6 months ago

Had to add graphQLSchemaGenerator.withOperationsFromSingleton(<a controller object>). It got resolved after adding this line in configuration.