Feature Idea (one per thread):
Hello everyone,
First of all thank you all in prismic team 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.
There is an explorer here:
You can use Ctrl + Space to trigger autofill:
Phil
(Phil Snow)
October 21, 2020, 9:25am
3
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:
This thread details how to request activation of the following Prismic features:
Integration Fields
Environments (Platinum Plan)
You can also ask for these 'action' requests:
Main locale changes
Deleting user accounts
Media removal requests
Features that are activated by default (Need activated on legacy repos):
GraphQL (Visit https://your-repo-name.prismic.io/graphql to see your GraphQL browser)
New toolbar/edit button (If the preview script in your repo has new=true, you are up to date…
@marcellothearcane and @Phil Thanks for fast response.
@Phil graphlQL is working perfectly in my repo. Thank you
@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
I was going to suggest https://graphiql-online.com/graphiql , but it doesn't work without POST on the endpoint (Prismic uses GET instead ).