From 0f37af1b25ff4ac418f8bf240c1e3f764fd10dde Mon Sep 17 00:00:00 2001 From: Rossen Stoyanchev Date: Wed, 29 Sep 2021 15:59:52 +0100 Subject: [PATCH] Update default extensions in reference docs See gh-134 --- .../src/docs/asciidoc/boot-starter.adoc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/spring-graphql-docs/src/docs/asciidoc/boot-starter.adoc b/spring-graphql-docs/src/docs/asciidoc/boot-starter.adoc index a8b2b6c8..a8b1cb50 100644 --- a/spring-graphql-docs/src/docs/asciidoc/boot-starter.adoc +++ b/spring-graphql-docs/src/docs/asciidoc/boot-starter.adoc @@ -95,17 +95,17 @@ released in Spring Boot 2.7. [[boot-graphql-schema]] == Schema -By default, GraphQL schema files are expected to be in `src/main/resources/graphql` and have -the extension ".graphqls", ".graphql", ".gql", or ".gqls". You can customize the -schema locations to check as follows: +By default, the Boot starter checks in `src/main/resources/graphql` for GraphQL schema +files with extensions ".graphqls" or ".gqls". To customize this, use the following: [source,properties,indent=0,subs="verbatim,quotes"] ---- spring.graphql.schema.locations=classpath:graphql/ +spring.graphql.schema.fileExtensions=.graphqls, .gqls ---- -The GraphQL schema can be viewed over HTTP at "/graphql/schema". This is not enabled by -default: +The GraphQL schema can be viewed at HTTP GET /graphql/schema. This is off by default and +needs to be enabled: [source,properties,indent=0,subs="verbatim,quotes"] ----