apollographql / apollo-kotlin

:rocket:  A strongly-typed, caching GraphQL client for the JVM, Android, and Kotlin multiplatform.
https://www.apollographql.com/docs/kotlin
MIT License
3.77k stars 656 forks source link

Be able to serialize string arguments as multi-line strings #6269

Open cheapsteak opened 4 days ago

cheapsteak commented 4 days ago

Use case

When performing schema transforms, inputs that are multi-line strings get output in a single line string with escaped newline characters

E.g. directives with very long arguments

Describe the solution you'd like

It would be desirable to be able to allow strings to be serialized as multi-line strings