0
votes

I'm using SilverStripe 4 and applied a plug-in using composer require silverstripe/graphql.

After following the instructions from the document of silverstripe/graphql from this source https://github.com/silverstripe/silverstripe-graphql, I can't seem to access the GraphiQL of the GraphQL through this url localhost/silverstripe/dev/graphiql (silverstripe is the name of my folder in htdocs, graphiql is the UI counter part that will help me to perform queries for GraphQL)

GraphQL sample output:

Output for GraphiQL

Using Postman:

POST method using Postman

GraphiQL sample output:

GraphiQL route not working

My namepace is SS\GraphQL

File Directory

Sample Code

Also applied this into my routes.yml file:

routes.yml

I have these inside a GraphQL folder inside the _config

GraphQL

membertypecreator.yml:

enter image description here

readmemberquerycreator.yml:

enter image description here

Am I doing something wrong here? I was able to reproduce the steps and codes from the documentation Kindly requesting for your help please...

1

1 Answers

1
votes

OK FINALLY, was able to answer my query, by installing composer require --dev silverstripe/graphql-devtools, I was able to go to localhost/silverstripe/dev/graphiql and was able to open this UI:

GraphiQL