swift-graphql icon indicating copy to clipboard operation
swift-graphql copied to clipboard

Generating code from a graphql file fails

Open Sundea opened this issue 2 years ago • 0 comments

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:

  1. Go to 'https://docs.github.com/en/graphql/overview/public-schema' and download the schema
  2. run % swift-graphql schema.docs.graphql
  3. 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.

Sundea avatar Aug 30 '22 16:08 Sundea