From 9abaa23cfc19747154e9d7df7a858056404ed890 Mon Sep 17 00:00:00 2001 From: rstoyanchev Date: Tue, 20 Sep 2022 11:28:41 +0100 Subject: [PATCH] Document finding schema files across modules Closes gh-489 --- spring-graphql-docs/src/docs/asciidoc/index.adoc | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/spring-graphql-docs/src/docs/asciidoc/index.adoc b/spring-graphql-docs/src/docs/asciidoc/index.adoc index 3ba5698a..b766f405 100644 --- a/spring-graphql-docs/src/docs/asciidoc/index.adoc +++ b/spring-graphql-docs/src/docs/asciidoc/index.adoc @@ -339,10 +339,14 @@ parsed and merged together. That means schema files can be loaded from just abou location. By default, the Spring Boot starter -{spring-boot-ref-docs}/web.html#web.graphql.schema[finds schema files] from a -well-known classpath location, but you can change that to a location on the file system -via `FileSystemResource`, to byte content via `ByteArrayResource`, or implement a custom -`Resource` that loads schema files from a remote location or storage. +{spring-boot-ref-docs}/web.html#web.graphql.schema[looks for schema files] with extensions +".graphqls" or ".gqls" under the location `classpath:graphql/**`, which is typically +`src/main/resources/graphql`. You can also use a file system location, or any location +supported by the Spring `Resource` hierarchy, including a custom implementation that +loads schema files from remote locations, from storage, or from memory. + +TIP: Use `classpath*:graphql/**/` to find schema files across multiple classpath +locations, e.g. across multiple modules. [[execution-graphqlsource-schema-creation]]