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: Allow quotes in query document string #2701

Merged
merged 3 commits into from
Dec 7, 2022

Conversation

calvincestari
Copy link
Member

@calvincestari calvincestari commented Dec 6, 2022

Fixes #2671

Quotes in query strings were causing build errors because the query string itself was enclosed in quotes in the generated operation model. The fix is to use the Swift's Extended String Delimiters feature.

Update - added #3cc3027 which applies the Extended String Delimiter treatment to multiline query strings too. The value in this is that Swift should not have any special processing of any query string, just a character-for-character representation of what is defined in the operation.

This PR also includes updates to the internal test projects. There are no updates related to the query strings but this keeps them up to date with the latest code generation engine.

@netlify
Copy link

netlify bot commented Dec 6, 2022

Deploy Preview for apollo-ios-docs canceled.

Name Link
🔨 Latest commit 3cc3027
🔍 Latest deploy log https://app.netlify.com/sites/apollo-ios-docs/deploys/639102b5df6e190008b37417

@calvincestari calvincestari merged commit da521e7 into main Dec 7, 2022
@calvincestari calvincestari deleted the fix/singleline-querystringliteralformat branch December 7, 2022 21:48
@calvincestari calvincestari mentioned this pull request Jan 10, 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.

Quotes in operation identifiers are not escaped
2 participants