client:codegen --no-addTypename for SWIFT target
See original GitHub issueCode generate --no-addTypename
is not working for swift
target.
Any version <=2.13.1
has this issue. Apollo-iOS example can reproduce.
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Codegen configuration - Apollo GraphQL Docs
Indicates that you would like to include the generated module directly in your application target. swiftPackageManager, Creates a schema module as an SPM ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Version: apollo/2.24.0 darwin-x64 node-v10.16.3
I see the same issue. When
__typename
is present the GraphQL deserialization fails from my Apollo server with:If I manually remove the
from the generated code things under
public static let selections: [GraphQLSelection] = [
things start working again.
The issue still exists. It doesn’t appear to be a tooling issue but more with the apollo-ios. Should it be logged somewhere else for visibility? I am happy to work with someone to resolve this issue.