GraphQL API introspecton/codegen

You can easily generate schema using https://graphql-code-generator.com/ CLI
with the following config:
schema:

I wish this would be documented in the guide, it took me half a day to figure that out, and I was very close to giving up on prismic and switching to GraphCMS

1 Like