Skip to content

Create new config to allow for consistent generated output ordering #5106

@anniej42

Description

@anniej42

When running the generator two times in a row, the output is inconsistently sorted and creates a large git diff. When I add a new query for example, I'd like it to be easier to review the new generated types and functions before merging.

Describe the solution you'd like
A new config flag that allows for sorting the output. This might mean the generator will take a few more seconds to run, but since this is not happening at build time that works for me.

Describe alternatives you've considered
We've considered running the generator during the build and adding the generated file to .gitignore, but since the file is infrequently changed we'd prefer to manually review the diff during PRs.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions