0

I have added pom dependency in the spring boot application for graphiql playground with the "graphiql-spring-boot-starter-5.0.2.jar" dependency.

Now I would like to disable the playground for the production environment.

And have tried with spring boot applications as below, but none of these options working to disable the GraphiQL endpoint.

  1. graphiql.enabled= false
  2. dgs.graphql.graphiql.enabled=false

Could you please suggest how we could disable GraphiQL?

1 Answer 1

1

You can actually add the below configuration in your production profile inside application.yml or application.properties to disable the playground in the production.

I have tested it with com.graphql-java:playground-spring-boot-started:11.0.0

In application.yml

graphql:
 playground:
  enabled: false

In application.properties

graphql.playground.enabled = false

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.