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

Pretty SDL export #877

Closed
Sytten opened this issue Mar 24, 2022 · 0 comments
Closed

Pretty SDL export #877

Sytten opened this issue Mar 24, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@Sytten
Copy link

Sytten commented Mar 24, 2022

Description of the feature

It would be nice to have a "pretty" export mode for the SDL. Similar to what you would get from graphql codegen.
What we have currently is pretty close, it is just a matter of adding a few options:

struct SDLExportOptions {
  with_newline: bool // This adds a newline between each element
  with_sorted_fields: bool // This sorts the fields in each type in alphabetical order
}

We use the schema as part of the review process so it's nice when it is easier to read.

@Sytten Sytten added the enhancement New feature or request label Mar 24, 2022
@Sytten Sytten closed this as completed May 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant