Skip to content

Commit 9abaa23

Browse files
committed
Document finding schema files across modules
Closes gh-489
1 parent 4de39f0 commit 9abaa23

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

spring-graphql-docs/src/docs/asciidoc/index.adoc

+8-4
Original file line numberDiff line numberDiff line change
@@ -339,10 +339,14 @@ parsed and merged together. That means schema files can be loaded from just abou
339339
location.
340340

341341
By 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]]

0 commit comments

Comments
 (0)