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

Make graphql_schema output deterministic #1511

Open
jams2 opened this issue Mar 28, 2024 · 2 comments
Open

Make graphql_schema output deterministic #1511

jams2 opened this issue Mar 28, 2024 · 2 comments

Comments

@jams2
Copy link

jams2 commented Mar 28, 2024

Is your feature request related to a problem? Please describe.

We have a CI job that checks that our schema file has been updated, by comparing the output of graphql_schema with the committed file. This intermittently fails due to the fact that the ordering of entries in the schema is non-deterministic.

Describe the solution you'd like

It would be great if the ordering of entries was deterministic - this would solve this issue for my team.

Describe alternatives you've considered

We can write a wrapper for the command, but it would be preferable if this were solved upstream.

Additional context

$ pip freeze | grep graphene
graphene==3.3
graphene-django==3.1.5
@jams2
Copy link
Author

jams2 commented Apr 30, 2024

Is this compatible with the project's roadmap? We may be able to submit a patch.

@kiendang
Copy link
Collaborator

Is this compatible with the project's roadmap? We may be able to submit a patch.

@Jam2 yes PRs are welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants