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: Additional reserved keyword #2772

Merged
merged 2 commits into from
Jan 11, 2023
Merged

Conversation

calvincestari
Copy link
Member

Fixes #2765

This PR simply adds for to the list of reserved keywords to escape in backticks.

I looked through the Apollo Tooling list and both open and for were missing from 1.0 but open is not an issue in the generated code.

@netlify
Copy link

netlify bot commented Jan 11, 2023

Deploy Preview for apollo-ios-docs canceled.

Name Link
🔨 Latest commit ef9b4b4
🔍 Latest deploy log https://app.netlify.com/sites/apollo-ios-docs/deploys/63bf340aefe6370008535f17

@@ -129,57 +129,7 @@ class EnumTemplateTests: XCTestCase {

// Escaped keywords
("associatedtype", nil, nil),
("class", nil, nil),
Copy link
Member Author

Choose a reason for hiding this comment

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

This is test cleanup - I'm not sure why we need all the escaped keywords in this test so I left two with different casing that require backticks.

Copy link
Contributor

@AnthonyMDev AnthonyMDev left a comment

Choose a reason for hiding this comment

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

Thanks for catching that!

@calvincestari calvincestari merged commit 648e09e into main Jan 11, 2023
@calvincestari calvincestari deleted the fix/additional-reserved-keywords branch January 11, 2023 22:15
@calvincestari calvincestari mentioned this pull request Feb 8, 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.

Couldn't build the generated graphql project when using some reserved words in the graphql file
2 participants