You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 19, 2023. It is now read-only.
@@ -433,6 +437,62 @@ You can configure the query, variables, headers and even supply sample responses
433
437
, `variables` and `responses` are expected to be resources of the appropriate format (GraphQL
434
438
for `query`, JSON for `variables` and `responses`).
435
439
440
+
441
+
# Enable GraphQL Voyager
442
+
443
+
**GraphQL Voyager** becomes accessible at root `/voyager` (or as configured
444
+
in `voyager.mapping`)
445
+
if `voyager-spring-boot-starter` is added as a dependency to a boot application.
446
+
447
+
Available Spring Boot configuration parameters (either `application.yml`
448
+
or `application.properties`):
449
+
450
+
```yaml
451
+
voyager:
452
+
enabled: true
453
+
basePath: /
454
+
mapping: /voyager
455
+
endpoint: /graphql
456
+
cdn:
457
+
enabled: false
458
+
version: latest
459
+
pageTitle: Voyager
460
+
displayOptions:
461
+
skipRelay: true
462
+
skipDeprecated: true
463
+
rootType: Query
464
+
sortByAlphabet: false
465
+
showLeafFields: true
466
+
hideRoot: false
467
+
hideDocs: false
468
+
hideSettings: false
469
+
```
470
+
471
+
## GraphQL Voyager Basic settings
472
+
473
+
`mapping`and `endpoint` will default to `/voyager` and `/graphql`, respectively. Note that these values may not be empty.
474
+
475
+
`enabled`defaults to `true`, and therefor **GraphQL Voyager** will be available by default if the dependency
476
+
is added to a Spring Boot Web Application project.
477
+
478
+
`pageTitle`defaults to `Voyager`.
479
+
480
+
All other properties default to the same as documented on the official [GraphQL Voyager readme](https://github.com/APIs-guru/graphql-voyager#properties)
481
+
482
+
## GraphQL Voyager CDN
483
+
484
+
The currently bundled version is `1.0.0-rc31`, which is - as of writing this - the latest release
485
+
of **GraphQL Voyager**. The CDN option uses `jsDelivr` CDN, if enabled. By default, it will
486
+
load the latest available release. Available CDN versions can be found on the project's
487
+
[jsDelivr page](https://www.jsdelivr.com/package/npm/graphql-voyager). The CDN option is
488
+
disabled by default.
489
+
490
+
## Customizing GraphQL Voyager
491
+
492
+
Further **GraphQL Voyager** `displayOptions`, `hideDocs` and `hideSettings` customizations can be configured, as documented in the official
Copy file name to clipboardExpand all lines: voyager-spring-boot-autoconfigure/src/main/java/graphql/kickstart/voyager/boot/ReactiveVoyagerAutoConfiguration.java
Copy file name to clipboardExpand all lines: voyager-spring-boot-autoconfigure/src/main/java/graphql/kickstart/voyager/boot/ReactiveVoyagerController.java
Copy file name to clipboardExpand all lines: voyager-spring-boot-autoconfigure/src/main/java/graphql/kickstart/voyager/boot/VoyagerAutoConfiguration.java
Copy file name to clipboardExpand all lines: voyager-spring-boot-autoconfigure/src/main/java/graphql/kickstart/voyager/boot/VoyagerIndexHtmlTemplate.java
0 commit comments