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

fix: Adding type name suffixing for reserved keywords #3058

Merged
merged 2 commits into from
Jun 7, 2023

Conversation

BobaFetters
Copy link
Member

  • Added formattedName value to GraphlQLNamedType and overrides in subclasses for specific behavior
  • Added checks for reserved keyword usage to type name to apply appropriate suffixes to avoid conflicts

Closes #3006

- Added `formattedName` value to `GraphlQLNamedType` and overrides in subclasses for specific behavior
- Added checks for reserved keyword usage to type name to apply appropriate suffixes to avoid conflicts
@netlify
Copy link

netlify bot commented Jun 2, 2023

Deploy Preview for apollo-ios-docs ready!

Name Link
🔨 Latest commit 5a4cc00
🔍 Latest deploy log https://app.netlify.com/sites/apollo-ios-docs/deploys/64807e7a38d19e000736d9c7
😎 Deploy Preview https://deploy-preview-3058--apollo-ios-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

Copy link
Member

@calvincestari calvincestari left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great Zach - thanks!

This might need to go out in a minor release since it could change the naming of existing structs/classes in generated code. So it's a breaking change, not a very serious one, but we can't take advantage of Xcode renaming annotation which is the annoying bit for users.

@BobaFetters
Copy link
Member Author

@calvincestari Agreed, definitely a minor breaking change and should go out as part of 1.3.

@BobaFetters BobaFetters changed the base branch from main to release/1.3 June 7, 2023 12:57
@BobaFetters BobaFetters merged commit e31ee4a into release/1.3 Jun 7, 2023
@BobaFetters BobaFetters deleted the fix/3006-reserved-keyword-error branch June 7, 2023 13:09
@calvincestari calvincestari mentioned this pull request Jun 20, 2023
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Using reserved keyword Type as in selection fields does not compile
3 participants