graphene-django icon indicating copy to clipboard operation
graphene-django copied to clipboard

Make `graphql_schema` output deterministic

Open jams2 opened this issue 1 year ago • 2 comments

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 avatar Mar 28 '24 14:03 jams2

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

jams2 avatar Apr 30 '24 11:04 jams2

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

@jam2 yes PRs are welcome.

kiendang avatar Apr 30 '24 13:04 kiendang