Browse Source

Move schema.graphqls into test module

Spring Projects that have the `spring.graphql.schema.locations` property
set to `"classpath*:graphql/**/"` as suggested in the documentation have
failing GraphQL tests after upgrading to Spring Boot 4.
The `Query` type definition in the books-domain schema clashes with the
schema of the application. Presumably the books-domain schema was never
meant to exist in the exported JAR file. This commit moves it into the
test module to stop it from being exported and causing problems.

Signed-off-by: mspiess <30656914+mspiess@users.noreply.github.com>

See gh-48829
pull/48875/head
mspiess 2 weeks ago committed by Andy Wilkinson
parent
commit
ce20e1ed20
  1. 0
      module/spring-boot-graphql-test/src/test/resources/graphql/schema.graphqls

0
module/spring-boot-graphql-test/src/main/resources/graphql/schema.graphqls → module/spring-boot-graphql-test/src/test/resources/graphql/schema.graphqls

Loading…
Cancel
Save