How to access graphql docs (/graphiql) from AWS Load Balancer

52 Views Asked by At

I am using Netflix Dgs Graphql in my application.

I have deployed my application in AWS exposing it using Application Load Balancer. I have configured port 443 and 80 in ingress rules and port 8080(Application port) in outgress rules.

When I want to access the graphql User Interface (/graphiql), I am getting 404 error. But in local I can able to access the /graphiql with this localhost: http://localhost:8081/demo-graphql-app/graphiql

And all other graphql apis I can able to access via load balancer.

Should I need to expose any other port apart from 443 and 80 for graphiql to access? Please help

Thanks in advance!

1

There are 1 best solutions below

0
On

I have resolved my issue.

In my application I have enabled the graphiql property.

I am using spring boot application, so in my properties file I have added the following

dgs:
  graphql:
    graphiql:
      enabled: true