Skip to content

Commit 0f37af1

Browse files
committed
Update default extensions in reference docs
See gh-134
1 parent 5109a11 commit 0f37af1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

spring-graphql-docs/src/docs/asciidoc/boot-starter.adoc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -95,17 +95,17 @@ released in Spring Boot 2.7.
9595
[[boot-graphql-schema]]
9696
== Schema
9797

98-
By default, GraphQL schema files are expected to be in `src/main/resources/graphql` and have
99-
the extension ".graphqls", ".graphql", ".gql", or ".gqls". You can customize the
100-
schema locations to check as follows:
98+
By default, the Boot starter checks in `src/main/resources/graphql` for GraphQL schema
99+
files with extensions ".graphqls" or ".gqls". To customize this, use the following:
101100

102101
[source,properties,indent=0,subs="verbatim,quotes"]
103102
----
104103
spring.graphql.schema.locations=classpath:graphql/
104+
spring.graphql.schema.fileExtensions=.graphqls, .gqls
105105
----
106106

107-
The GraphQL schema can be viewed over HTTP at "/graphql/schema". This is not enabled by
108-
default:
107+
The GraphQL schema can be viewed at HTTP GET /graphql/schema. This is off by default and
108+
needs to be enabled:
109109

110110
[source,properties,indent=0,subs="verbatim,quotes"]
111111
----

0 commit comments

Comments
 (0)