File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
spring-graphql-docs/src/docs/asciidoc Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -339,10 +339,14 @@ parsed and merged together. That means schema files can be loaded from just abou
339339location.
340340
341341By default, the Spring Boot starter
342- {spring-boot-ref-docs}/web.html#web.graphql.schema[finds schema files] from a
343- well-known classpath location, but you can change that to a location on the file system
344- via `FileSystemResource`, to byte content via `ByteArrayResource`, or implement a custom
345- `Resource` that loads schema files from a remote location or storage.
342+ {spring-boot-ref-docs}/web.html#web.graphql.schema[looks for schema files] with extensions
343+ ".graphqls" or ".gqls" under the location `classpath:graphql/**`, which is typically
344+ `src/main/resources/graphql`. You can also use a file system location, or any location
345+ supported by the Spring `Resource` hierarchy, including a custom implementation that
346+ loads schema files from remote locations, from storage, or from memory.
347+
348+ TIP: Use `classpath*:graphql/**/` to find schema files across multiple classpath
349+ locations, e.g. across multiple modules.
346350
347351
348352[[execution-graphqlsource-schema-creation]]
You can’t perform that action at this time.
0 commit comments