Using \r\n In GQL String Will Cause Invalid Swift Generation Using ApolloCLI #3553
Labels
bug
Generally incorrect behavior
codegen
Issues related to or arising from code generation
good first issue
Issues that are suitable for first-time contributors.
low-priority
Summary
With the following GQL schema:
And the following operation:
Running the ./apollo-cli-generate will cause this Swift code to be generated:
As you can see, anything past the first \r\n is not commented, resulting in invalid syntax.
I've recreated this problem in this repo, which you can clone and run to reproduce yourself.
Version
1.21.0
Steps to reproduce the behavior
See above.
Logs
Anything else?
No response
The text was updated successfully, but these errors were encountered: