leangen / graphql-spqr-spring-boot-starter

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

Upgrade to 0.0.7 with springboot 2.7.6 Failing - Java Project #126

Closed P01singh closed 1 year ago

P01singh commented 1 year ago

Hi ,

When we upgrade to spring boot 2.7.6 and graphql-spqr-spring-boot-starter to 0.0.7 version . The project is failing and getting following error Failed to instantiate [graphql.schema.GraphQLSchema]: Factory method 'graphQLSchema' threw exception; nested exception is graphql.schema.validation.InvalidSchemaException: invalid schema:

As using SPQR have not defined any schema or resolver.

P01singh commented 1 year ago
Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'graphQLSchema' defined in class path resource [io/leangen/graphql/spqr/spring/autoconfigure/BaseAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [graphql.schema.GraphQLSchema]: Factory method 'graphQLSchema' threw exception; nested exception is graphql.schema.validation.InvalidSchemaException: invalid schema:
"Supplier_Map_String_StringInput" must define one or more fields.