apollographql / apollographql/apollo-tooling
Compilation of generated API.swift fails
- Dominant language
- TypeScript
- Stars
- 3k
- Forks
- 460
- PR merge metrics
- No merged PRs in 30d
Description
Compilation of `API.swift` fails with one instance of this error per query in my schema.
```
API.swift:174:31: Cannot convert value of type 'MyQuery.Data.User.Type' to expected argument type 'GraphQLFragment.Type'
```
The build script prints the following, so presumably 1.9.2 is the version used to generate `API.swift`.
```
› Warning: apollo update available from 1.9.2 to 2.1.7
```
`Cartfile.resolved`:
```
github "apollostack/apollo-ios" "0.9.5"
github "daltoniam/Starscream" "3.0.6"
github "stephencelis/SQLite.swift" "0.11.5"
```
Any ideas what I might be doing wrong?
Contributor guide
Research direction
Start by reproducing the compilation failure at API.swift:174 and compare the generated API.swift version reported by the build script with the Apollo iOS version in Cartfile.resolved. Trace the generated query and fragment types involved in the error; done means API.swift compiles successfully with the declared dependency versions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- graphql, swift, typescript
- Domain
- api, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100