hasuragraphql-playground

connect to hasura console using graphql playground


I am having a difficult time using Hasura built-in GrpahQL manipulation UserInterface. so I decided to use the GrpahQL playground as I used to. but when I try to access the exact graphql endpoint. there is an error appears on the playground.

 Unexpected token p in JSON at position 4

I have also placed my Hasura admin secret in the HTTP headers section.

{
  "x-hasura-admin-secret": "myadminsecretkey",
  "content-type": "application/json"
}

can't access Hasura console from graphql playground


Solution

  • The GraphQL endpoint that Hasura serves would be available at /v1/graphql.

    So in your case, it would be http://localhost:9695/v1/graphql.