Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.15.3 CLI parent type change #3477

Closed
WilliamNumerade opened this issue Nov 21, 2024 · 3 comments
Closed

1.15.3 CLI parent type change #3477

WilliamNumerade opened this issue Nov 21, 2024 · 3 comments
Labels
question Issues that have a question which should be addressed

Comments

@WilliamNumerade
Copy link

Question

We just upgraded the CLI from 1.9.3 to 1.15.3.
With this update, __parentType added any to ApolloAPI.ParentType, and now we are getting:
Type 'GraphQL' has no member 'ID'
and also:
'ID' is not a member type of enum 'Numerade.NumeradeGraphQL'

Would appreciate any help getting around this.

@WilliamNumerade WilliamNumerade added the question Issues that have a question which should be addressed label Nov 21, 2024
@WilliamNumerade
Copy link
Author

It turns out that the auto-generated ID extension file was not automatically added to the project.

Copy link
Contributor

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.

@calvincestari
Copy link
Member

I think the change you're noticing with ID might be from release 1.12.0.

ID as a custom scalar (#3379): This changes the generation of the built-in GraphQL ID scalar to be treated as a custom scalar that can be modified by the user. See PR apollographql/apollo-ios-dev#363.

As for any being added to __parentType - this shouldn't cause any problems and it is a change to support the existential any feature introduced in Swift 5.6.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Issues that have a question which should be addressed
Projects
None yet
Development

No branches or pull requests

2 participants