apollographql / apollo-ios

📱  A strongly-typed, caching GraphQL client for iOS, written in Swift.
https://www.apollographql.com/docs/ios/
MIT License
3.87k stars 717 forks source link

Unable to generate code #3347

Closed JBergsee closed 6 months ago

JBergsee commented 6 months ago

Question

Is there a max size of the schema file? I am trying to generate code from this file: http://api-schema-doc.s3-website-eu-west-1.amazonaws.com/schema-beta.json But the cli "generate" command just tells me JSON Parse error: Unexpected EOF Is there any way of knowing which line or type that generates the error?

calvincestari commented 6 months ago

Hi @JBergsee, there doesn't appear to be anything invalid with the schema format and the length isn't an issue. I was able to generate a simple operation against the schema so I suggest checking that your operation files don't have any formatting issues.

github-actions[bot] commented 6 months ago

Do you have any feedback for the maintainers? Please tell us by taking a one-minute survey. Your responses will help us understand Apollo iOS usage and allow us to serve you better.

JBergsee commented 6 months ago

Thank you @calvincestari ! I have been wasting an entire week on trying to fix the schema, when it was a capital "A" instead of an "a" in an operation file that made the whole thing fail... I'm extremely grateful for this breakthrough!

calvincestari commented 6 months ago

I'm glad we could help and you managed to get it working.