1

Running

   {
  __schema{
    types{
     name
      kind
    }
  }
}

gives

{
  "errors": [
    {
      "message": "GraphQL introspection is not allowed, but the query contained __schema or __type",
      "category": "graphql",
      "locations": [
        {
          "line": 31,
          "column": 3
        }
      ]
    }
  ]
}

I am using GraphiQL on windows to a Magento graphql server. I also get the same result if i run graphql get-schema on command line using graphql-cli. How do I allow Graphql introspection?

1 Answer 1

2

You need to be in Developer mode to use introspection.

Use deploy:mode:set developer

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.