Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add support for Block String in GraphQL files #260

Closed
jeremywiebe opened this issue Mar 4, 2021 · 0 comments · Fixed by #261
Closed

Add support for Block String in GraphQL files #260

jeremywiebe opened this issue Mar 4, 2021 · 0 comments · Fixed by #261

Comments

@jeremywiebe
Copy link
Contributor

jeremywiebe commented Mar 4, 2021

The GraphQL spec added support for multiline strings ("Block Strings") in RFC #327. Then in June 2018 the schema declared support for using Block Strings to write descriptions.

It would be useful if Rewrap supported wrapping Block Strings in .graphql files.

For example:

"""
Defines the return type for `MyMutation`. This mutation does some stuff and then returns the name of the operation that was executed.
"""
type MyMutation {
    name: String!
}

would become

"""
Defines the return type for `MyMutation`. This mutation does some stuff and 
then returns the name of the operation that was executed.
"""
type MyMutation {
    name: String!
}
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant