Praveen Kumar
Praveen Kumar

Reputation: 1539

How to configure the graphql endpoint in Netflix DGS with spring boot

I have a simple hello world example using Netflix DGS (8.2.2) and Spring Boot (3.2.1), by default the graphql endpoint is exposed on /graphql endpoint

I tried to change the graphql endpoint to /gql by adding configurations in the application.yml

dgs:
  graphql:
    endpoint: /gql

Its not working. I am still able to access the application on /graphql only Any idea what is wrong ?

Upvotes: 0

Views: 490

Answers (1)

Daniel Craggs
Daniel Craggs

Reputation: 11

The documentation is here: https://netflix.github.io/dgs/configuration/

Looks like you need to specify "path", not "endpoint":

dgs:
  graphql:
    path: /gql

Upvotes: 0

Related Questions