GraphQL API introspecton/codegen

Hey guys,
The introspection query is there and is used for the graphiQL interface when you hit /graphql in your browser.
But for now it’s not conventional since Prismic relies on GET request but also requires to specify the ref with the header Prismic-Ref.
That’s why this kind of tool doesn’t work out of the box but if you can configure it with GET and the ref in the headers that should work.
We plan to improve this part and make it compatible with this kind of codeGen/Types plugins.
Hope it helps :wink:

1 Like