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

Add flag to use lexicographicSortSchema when outputting schema #1039

Closed
1 of 3 tasks
benjie opened this issue Apr 5, 2019 · 0 comments · Fixed by #1046
Closed
1 of 3 tasks

Add flag to use lexicographicSortSchema when outputting schema #1039

benjie opened this issue Apr 5, 2019 · 0 comments · Fixed by #1046

Comments

@benjie
Copy link
Member

benjie commented Apr 5, 2019

I'm submitting a ...

  • bug report
  • feature request
  • question

PostGraphile version: 4.4.0-beta.9

Would be nice if we could use --lexicographic-sort to put the --export-schema-graphql/json flags into alphabetic mode. This will be particularly useful when diffing the schema as it will be consistently ordered.

I don't think this should sort the ACTUAL schema, so if --export-schema-graphql/json is not specified, maybe it should throw?

benjie added a commit that referenced this issue Apr 13, 2019
Fixes #1039 

Adds `--sort-export` CLI flag / `sortExport: true` library option.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant