Skip to content

Commit

Permalink
Add schema printer
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Wiesner committed Jan 19, 2023
1 parent 1439e1e commit 1ac3111
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ This project uses [ktlint](https://ktlint.github.io/)
* [graphql](http://localhost:8082/graphql)
* [graphiql](http://localhost:8082/graphiql)
* [subscription](http://localhost:8082/subscriptions)
* [schema](http://localhost:8082/graphql/schema)

Use [graphiql](http://localhost:8082/graphiql) to execute queries and browse schema
or [js-graphql](https://plugins.jetbrains.com/plugin/8097-js-graphql)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class SecurityConfig {
.pathMatchers(
"/graphql", // single graphql POST Endpoint for query / mutations / introspection
"/graphiql", // playground
"/sdl", // schema
"/graphql/schema", // schema
"/subscriptions" // apollo compatible websocket subscription
)
.permitAll()
Expand Down
5 changes: 5 additions & 0 deletions src/main/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,16 @@ management:

spring:
graphql:

websocket:
path: /subscriptions
graphiql:
enabled: true
path: /graphiql
schema:
printer:
enabled: true

security:
user:
name: user
Expand Down

0 comments on commit 1ac3111

Please sign in to comment.