swift-graphql
swift-graphql copied to clipboard
Generating code from a graphql file fails
Describe the bug
I've downloaded the Github schema by link https://docs.github.com/en/graphql/overview/public-schema and then have tried to run the generator % swift-graphql schema.docs.graphql
and it has failed
To Reproduce Steps to reproduce the behavior:
- Go to 'https://docs.github.com/en/graphql/overview/public-schema' and download the schema
- run
% swift-graphql schema.docs.graphql
- See error
Generating SwiftGraphQL Selection 🚀
⠋ Fetching GraphQL SchemaThe data couldn’t be read because it isn’t in the correct format.
Error: Couldn't reach GraphQL server at given endpoint.