@@ -82,19 +82,6 @@ Set the Kotlin version in your `<properties>` section
82
82
83
83
See our new [ Documentation] ( https://www.graphql-java-kickstart.com/spring-boot/ ) .
84
84
85
- Repository contains:
86
-
87
- * ` graphql-spring-boot-starter ` to turn your boot application into GraphQL server (
88
- see [ graphql-java-servlet] ( https://github.com/graphql-java-kickstart/graphql-java-servlet ) )
89
- * ` altair-spring-boot-starter ` to embed ` Altair ` tool for schema introspection and query debugging (
90
- see [ altair] ( https://github.com/imolorhe/altair ) )
91
- * ` graphiql-spring-boot-starter ` to embed ` GraphiQL ` tool for schema introspection and query
92
- debugging (see [ graphiql] ( https://github.com/graphql/graphiql ) )
93
- * ` playground-spring-boot-starter ` to embed ` GraphQL Playground ` tool for schema introspection and
94
- query debugging (see [ GraphQL Playground] ( https://github.com/prisma/graphql-playground ) )
95
- * ` voyager-spring-boot-starter ` to embed ` Voyager ` tool for visually explore GraphQL APIs as an
96
- interactive graph (see [ voyger] ( https://github.com/APIs-guru/graphql-voyager ) )
97
-
98
85
## Requirements and Downloads
99
86
100
87
Requirements:
@@ -112,18 +99,6 @@ repositories {
112
99
dependencies {
113
100
implementation 'com.graphql-java-kickstart:graphql-spring-boot-starter:12.0.0'
114
101
115
- // to embed Altair tool
116
- runtimeOnly 'com.graphql-java-kickstart:altair-spring-boot-starter:12.0.0'
117
-
118
- // to embed GraphiQL tool
119
- runtimeOnly 'com.graphql-java-kickstart:graphiql-spring-boot-starter:12.0.0'
120
-
121
- // to embed GraphQL Playground tool
122
- runtimeOnly 'com.graphql-java-kickstart:playground-spring-boot-starter:12.0.0'
123
-
124
- // to embed Voyager tool
125
- runtimeOnly 'com.graphql-java-kickstart:voyager-spring-boot-starter:12.0.0'
126
-
127
102
// testing facilities
128
103
testImplementation 'com.graphql-java-kickstart:graphql-spring-boot-starter-test:12.0.0'
129
104
}
@@ -132,46 +107,13 @@ dependencies {
132
107
Maven:
133
108
134
109
``` xml
135
-
136
110
<dependency >
137
111
<groupId >com.graphql-java-kickstart</groupId >
138
112
<artifactId >graphql-spring-boot-starter</artifactId >
139
113
<version >12.0.0</version >
140
114
</dependency >
141
115
142
- <!-- to embed Altair tool -->
143
- <dependency >
144
- <groupId >com.graphql-java-kickstart</groupId >
145
- <artifactId >altair-spring-boot-starter</artifactId >
146
- <version >12.0.0</version >
147
- <scope >runtime</scope >
148
- </dependency >
149
-
150
- <!-- to embed GraphiQL tool -->
151
- <dependency >
152
- <groupId >com.graphql-java-kickstart</groupId >
153
- <artifactId >graphiql-spring-boot-starter</artifactId >
154
- <version >12.0.0</version >
155
- <scope >runtime</scope >
156
- </dependency >
157
-
158
- <!-- to embed GraphQL Playground tool -->
159
- <dependency >
160
- <groupId >com.graphql-java-kickstart</groupId >
161
- <artifactId >playground-spring-boot-starter</artifactId >
162
- <version >12.0.0</version >
163
- <scope >runtime</scope >
164
- </dependency >
165
-
166
- <!-- to embed Voyager tool -->
167
- <dependency >
168
- <groupId >com.graphql-java-kickstart</groupId >
169
- <artifactId >voyager-spring-boot-starter</artifactId >
170
- <version >12.0.0</version >
171
- <scope >runtime</scope >
172
- </dependency >
173
-
174
- <!-- testing facilities -->
116
+ <!-- testing facilities -->
175
117
<dependency >
176
118
<groupId >com.graphql-java-kickstart</groupId >
177
119
<artifactId >graphql-spring-boot-starter-test</artifactId >
@@ -184,7 +126,6 @@ Maven:
184
126
### Snapshots
185
127
186
128
``` xml
187
-
188
129
<repositories >
189
130
<repository >
190
131
<id >osshr-snapshots</id >
@@ -243,8 +184,8 @@ to `false` to disable it.
243
184
244
185
# Enable Graph*i*QL
245
186
246
- Graph*i*QL becomes accessible at the root `/graphiql` if ` graphiql-spring-boot-starter` is added as
247
- a dependency to a boot application .
187
+ Graph*i*QL becomes accessible at the root `/graphiql` if the `graphql. graphiql.enabled` property
188
+ is true .
248
189
249
190
Note that GraphQL server must be available at `/graphql/*` context to be discovered by Graph*i*QL.
250
191
@@ -290,8 +231,7 @@ the `graphiql.headers` group.
290
231
291
232
# Enable Altair
292
233
293
- Altair becomes accessible at the root `/altair` if `altair-spring-boot-starter` is added as a
294
- dependency to a boot application.
234
+ Altair becomes accessible at the root `/altair` if the `graphql.altair.enabled` property is true.
295
235
296
236
Note that GraphQL server must be available at `/graphql/*` context to be discovered by Altair.
297
237
@@ -336,8 +276,7 @@ the `graphql.altair.resources` group to set the classpath resources that should
336
276
# Enable GraphQL Playground
337
277
338
278
GraphQL Playground becomes accessible at root `/playground` (or as configured
339
- in `graphql.playground.mapping`)
340
- if `playground-spring-boot-starter` is added as a dependency to a boot application.
279
+ in `graphql.playground.mapping`) if the `graphql.playground.enabled` property is true.
341
280
342
281
It uses an embedded `GraphQL Playground React`, in accordance to
343
282
the [official guide](https://github.com/prisma/graphql-playground#as-html-page), using the 'minimum
@@ -443,7 +382,7 @@ for `query`, JSON for `variables` and `responses`).
443
382
# Enable GraphQL Voyager
444
383
445
384
**GraphQL Voyager** becomes accessible at root `/voyager` (or as configured in `voyager.mapping`)
446
- if ` voyager-spring-boot-starter` is added as a dependency to a boot application .
385
+ if the `graphql. voyager.enabled` property is true .
447
386
448
387
Available Spring Boot configuration parameters (either `application.yml`
449
388
or `application.properties`) :
@@ -529,9 +468,8 @@ the classpath. Use the `schemaLocationPattern` property to customize this patter
529
468
530
469
https://github.com/Enigmatis/graphql-java-annotations
531
470
532
- The GraphQL Annotations library is used instead of GraphQL Java Tools if
533
- the `graphql-spring-boot-starter`
534
- dependency is replaced by `graphql-kickstart-spring-boot-starter-graphql-annotations`.
471
+ To use GraphQL Annotations library instead of GraphQL Java Tools, set the `graphql.schema-strategy`
472
+ property to `annotations`.
535
473
536
474
The schema will be built using the GraphQL Annotations library in a code-first approach - instead of
537
475
writing it manually, the schema will be constructed based on the Java code. Please see the
@@ -679,8 +617,7 @@ the [Code of Conduct](http://contributor-covenant.org/version/1/3/0/).
679
617
680
618
# Licenses
681
619
682
- ` graphql-spring-boot-starter` , `altair-spring-boot-starter`, `graphiql-spring-boot-starter`
683
- and `voyager-spring-boot-starter` are licensed under the MIT License. See [LICENSE](LICENSE.md) for
620
+ ` graphql-spring-boot-starter` is licensed under the MIT License. See [LICENSE](LICENSE.md) for
684
621
details.
685
622
686
623
[graphql-java License](https://github.com/andimarek/graphql-java/blob/master/LICENSE.md)
0 commit comments