Skip to content

How to create schema from GraphQL File for GraphiQL? #1921

Answered by eins78
vedantroy asked this question in Q&A / Support
Discussion options

You must be logged in to vote

You can give the schema as a prop (then no introspection will be done).
According to the docs the expected type is GraphQLSchema, so you might need to first convert the schema.graphql text file, for example using buildschema from the graphql js package https://graphql.org/graphql-js/utilities/#buildschema.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by acao
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1918 on July 09, 2021 08:13.