I have installed magento2.3.0 in localhost wamp server, It is working fine. When I'm trying to test GraphQL for PWA studio, I'm getting this error "TypeError: Failed to fetch". GraphQL Screenshot

  • did you ever solve this issue? I have the same problem – jonasG Mar 25 '19 at 14:30
  • facing same issue.. anyone have a solution ? – siddhrock Apr 16 '19 at 12:19
  • This does not really answer the question. If you have a different question, you can ask it by clicking Ask Question. You can also add a bounty to draw more attention to this question once you have enough reputation. - From Review – Manashvi Birla Apr 16 '19 at 12:48

You are on the right track but you can easily view Documentation when you click on Docs on the right top corner.

See screenshot with an example for the Category Query and the Documentation in the right sidebar.

GraphQl Docs Example

| improve this answer | |
  • current it's showing NO SCHEMA AVAILABLE in Docs. – Mankesh Dec 5 '18 at 6:08
  1. Make sure your storefront is working
  2. Switch to developer mode
  3. Set the GraphiQL client endpoint to hostname/graphql

Does the Documentation Explorer (Docs tab) load? Do you still receive the error?

| improve this answer | |
  • the storefront is working on developer mode on wamp server but still, the same issue is there. – Mankesh Dec 5 '18 at 6:02

to put the domain like http://mage230.localhost/graphql and not http://mage230/graphql

I had the same issue, but in my case I forgot the http:// now with a url http://mydomain.test/graphql it works.

Hope it helps.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.