Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
toinetoine committed Sep 19, 2022
1 parent a01b5af commit 05545e6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
`mvn clean install` from the root of the project.


---
## Fixed
Per [spring-graphql/issues/489](https://github.com/spring-projects/spring-graphql/issues/489#issuecomment-1249089331) changing `spring.graphql.schema.locations` to `classpath*:graphql/**/` caused schema files in animals module to be picked up.

---
## Original Issue

Only works when you move the `schema.graphqls` from the `animal` module to the `app` module.
![](img/Screenshot from 2022-09-15 16-46-39_2.png)

Expand Down
6 changes: 2 additions & 4 deletions app/src/main/resources/application.properties
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@

# old value spring.graphql.schema.locations=classpath:/graphql/
spring.graphql.schema.locations=classpath*:graphql/**/

#spring.graphql.schema.locations=classpath:graphql/*,BOOT-INF/lib/*.jar!/graphql/*
#spring.graphql.schema.locations=classpath:/graphql/,BOOT-INF/lib/animals-0.0.1-SNAPSHOT.jar!/graphql/
spring.graphql.schema.locations=classpath:/graphql/
#,BOOT-INF/lib/*.jar!/graphql/*
spring.graphql.cors.allowed-methods=POST
spring.graphql.path=/graphql
spring.graphql.graphiql.enabled=true
Expand Down

0 comments on commit 05545e6

Please sign in to comment.