GraphiQL explorer

Feature Idea (one per thread):
Hello everyone,

First of all thank you all in prismic team :heart: I really enjoy using your tool.

Feature idea:
Expand https://{{repo}}.prismic.io/graphql tool with graphiql-explorer plugin

Issue that it solves:
This will improve query writing speed, readability.

For people who are using graphQL for first time this helps eliminate learning curve.

Sorry for gramma and sentence structure.

2 Likes

There is an explorer here:

You can use Ctrl + Space to trigger autofill:

image

1 Like

Hi Arnas,

As @marcellothearcane said there is already a graphiql explorer available, if you are visiting https://your-repo-name.prismic.io/graphql and getting a 404, this means graphql isn't activated on the repo.

If anyone needs this activated you can do so by following the process described here:

1 Like

@marcellothearcane and @Phil Thanks for fast response.

@Phil graphlQL is working perfectly in my repo. Thank you :heart:

@marcellothearcane you are right about explorer and autofill.

Using this approach I found myself going deep into docs section, to find which fields are available and where is data which I need is laying. Which is fine, but using prismic + gatsby on another project I just felt in love this feature, and I really missing it in official prismic graphiQL api.

I understand that this is paid feature and this may not be a high priority. But as a developer I found it very handy.

Thank you guys for you time :heart::pray:

I was going to suggest https://graphiql-online.com/graphiql, but it doesn't work without POST on the endpoint (Prismic uses GET instead).

This is being tracked as an open feature request.

If you have another use-case for this feature, you can 'Flag' this topic to reopen. Please use the :heart: button to show your support for the feature and check out our Feature Request Guidelines.