You can easily generate schema using https://graphql-code-generator.com/ CLI
with the following config:
schema:
-
https://your-repo.prismic.io/graphql:
method: GET
headers:
prismic-ref: "ref"
Authorization: "key"
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