Skip to content

Commit 391b4c0

Browse files
committed
Update config prefixes to all have graphql
1 parent 3005bdc commit 391b4c0

File tree

1 file changed

+88
-85
lines changed
  • content/spring-boot/embedded-editors

1 file changed

+88
-85
lines changed

content/spring-boot/embedded-editors/index.md

Lines changed: 88 additions & 85 deletions
Original file line numberDiff line numberDiff line change
@@ -41,30 +41,31 @@ Note that GraphQL server must be available at `/graphql/\*` context to be discov
4141
Available Spring Boot configuration parameters (either `application.yml` or `application.properties`):
4242

4343
```yaml
44-
altair:
45-
enabled: true
46-
mapping: /altair
47-
subscriptions:
48-
timeout: 30
49-
reconnect: false
50-
static:
51-
base-path: /
52-
page-title: Altair
53-
cdn:
54-
enabled: false
55-
version: 4.0.2
56-
options:
57-
endpoint-url: /graphql
58-
subscriptions-endpoint: /subscriptions
59-
initial-settings:
60-
theme: dracula
61-
initial-headers:
62-
Authorization: "Bearer <your-token>"
63-
resources:
64-
initial-query: defaultQuery.graphql
65-
initial-variables: variables.graphql
66-
initial-pre-request-script: pre-request.graphql
67-
initial-post-request-script: post-request.graphql
44+
graphql:
45+
altair:
46+
enabled: true
47+
mapping: /altair
48+
subscriptions:
49+
timeout: 30
50+
reconnect: false
51+
static:
52+
base-path: /
53+
page-title: Altair
54+
cdn:
55+
enabled: false
56+
version: 4.0.2
57+
options:
58+
endpoint-url: /graphql
59+
subscriptions-endpoint: /subscriptions
60+
initial-settings:
61+
theme: dracula
62+
initial-headers:
63+
Authorization: "Bearer <your-token>"
64+
resources:
65+
initial-query: defaultQuery.graphql
66+
initial-variables: variables.graphql
67+
initial-pre-request-script: pre-request.graphql
68+
initial-post-request-script: post-request.graphql
6869
```
6970
7071
## GraphQL Playground
@@ -78,48 +79,49 @@ It uses an embedded GraphQL Playground React, in accordance to the official guid
7879
Available Spring Boot configuration parameters (either `application.yml` or `application.properties`):
7980

8081
```yaml
81-
graphql.playground:
82-
mapping: /playground
83-
endpoint: /graphql
84-
subscriptionEndpoint: /subscriptions
85-
staticPath.base: my-playground-resources-folder
86-
enabled: true
87-
pageTitle: Playground
88-
cdn:
89-
enabled: false
90-
version: latest
91-
settings:
92-
editor.cursorShape: line
93-
editor.fontFamily: "'Source Code Pro', 'Consolas', 'Inconsolata', 'Droid Sans Mono', 'Monaco', monospace"
94-
editor.fontSize: 14
95-
editor.reuseHeaders: true
96-
editor.theme: dark
97-
general.betaUpdates: false
98-
prettier.printWidth: 80
99-
prettier.tabWidth: 2
100-
prettier.useTabs: false
101-
request.credentials: omit
102-
schema.polling.enable: true
103-
schema.polling.endpointFilter: "*localhost*"
104-
schema.polling.interval: 2000
105-
schema.disableComments: true
106-
tracing.hideTracingResponse: true
107-
headers:
108-
headerFor: AllTabs
109-
tabs:
110-
- name: Example Tab
111-
query: classpath:exampleQuery.graphql
112-
headers:
113-
SomeHeader: Some value
114-
variables: classpath:variables.json
115-
responses:
116-
- classpath:exampleResponse1.json
117-
- classpath:exampleResponse2.json
82+
graphql:
83+
playground:
84+
mapping: /playground
85+
endpoint: /graphql
86+
subscriptionEndpoint: /subscriptions
87+
staticPath.base: my-playground-resources-folder
88+
enabled: true
89+
pageTitle: Playground
90+
cdn:
91+
enabled: false
92+
version: latest
93+
settings:
94+
editor.cursorShape: line
95+
editor.fontFamily: "'Source Code Pro', 'Consolas', 'Inconsolata', 'Droid Sans Mono', 'Monaco', monospace"
96+
editor.fontSize: 14
97+
editor.reuseHeaders: true
98+
editor.theme: dark
99+
general.betaUpdates: false
100+
prettier.printWidth: 80
101+
prettier.tabWidth: 2
102+
prettier.useTabs: false
103+
request.credentials: omit
104+
schema.polling.enable: true
105+
schema.polling.endpointFilter: "*localhost*"
106+
schema.polling.interval: 2000
107+
schema.disableComments: true
108+
tracing.hideTracingResponse: true
109+
headers:
110+
headerFor: AllTabs
111+
tabs:
112+
- name: Example Tab
113+
query: classpath:exampleQuery.graphql
114+
headers:
115+
SomeHeader: Some value
116+
variables: classpath:variables.json
117+
responses:
118+
- classpath:exampleResponse1.json
119+
- classpath:exampleResponse2.json
118120
```
119121

120122
## GraphiQL
121123

122-
[GraphiQL](https://github.com/graphql/graphiql) becomes accessible at the root `/graphiql` if `graphiql.enabled` application property is set to `true`.
124+
[GraphiQL](https://github.com/graphql/graphiql) becomes accessible at the root `/graphiql` if `graphql.graphiql.enabled` application property is set to `true`.
123125

124126
Note that GraphQL server must be available at `/graphql/*` context to be discovered by Graph*i*QL.
125127

@@ -128,29 +130,30 @@ Note that GraphQL server must be available at `/graphql/*` context to be discove
128130
Available Spring Boot configuration parameters (either `application.yml` or `application.properties`):
129131

130132
```yaml
131-
graphiql:
132-
mapping: /graphiql
133-
endpoint:
134-
graphql: /graphql
135-
subscriptions: /subscriptions
136-
subscriptions:
137-
timeout: 30
138-
reconnect: false
139-
basePath: /
140-
enabled: true
141-
pageTitle: GraphiQL
142-
cdn:
143-
enabled: false
144-
version: latest
145-
props:
146-
resources:
147-
query: query.graphql
148-
defaultQuery: defaultQuery.graphql
149-
variables: variables.graphql
150-
variables:
151-
editorTheme: "solarized light"
152-
headers:
153-
Authorization: "Bearer <your-token>"
133+
graphql:
134+
graphiql:
135+
mapping: /graphiql
136+
endpoint:
137+
graphql: /graphql
138+
subscriptions: /subscriptions
139+
subscriptions:
140+
timeout: 30
141+
reconnect: false
142+
basePath: /
143+
enabled: true
144+
pageTitle: GraphiQL
145+
cdn:
146+
enabled: false
147+
version: latest
148+
props:
149+
resources:
150+
query: query.graphql
151+
defaultQuery: defaultQuery.graphql
152+
variables: variables.graphql
153+
variables:
154+
editorTheme: "solarized light"
155+
headers:
156+
Authorization: "Bearer <your-token>"
154157
```
155158

156159
By default GraphiQL is served from within the package. This can be configured to be served from CDN

0 commit comments

Comments
 (0)