Scan schema locations for well-known file extensions

This commit improves gh-56 to scan schema locations for more well-known
file extensions, as previously only `*.graphqls` was supported.
We're now scanning for `*.graphqls`, `*.gqls`, `*.graphql`, `*.gql`.

Closes gh-56
This commit is contained in:
Brian Clozel
2021-06-30 21:06:17 +02:00
parent 6e871a790b
commit ef0fe03fce
7 changed files with 56 additions and 3 deletions

View File

@@ -129,7 +129,8 @@ The Spring GraphQL project offers a few configuration properties to customize yo
----
# web path to the graphql endpoint
spring.graphql.path=/graphql
# locations of the graphql '*.graphqls' schema files
# locations of the graphql schema files
# scanning for files with well-known extensions: '*.graphqls', '*.gqls', '*.graphql', '*.gql'
spring.graphql.schema.locations=classpath:graphql/
# schema printer endpoint configuration
# endpoint path is concatenated with the main path, so "/graphql/schema" by default