graphql-python / graphql-python/graphql-core-legacy

`print_schema` should be deterministic

Open
#135 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
372
Forks
175
PR merge metrics
No merged PRs in 30d

Description

In our project, we commit a graphql schema to our repo. This is useful for running demos, tests and mocking data.

However, now we also want to be able to ensure that the schema is kept up-to-date with a CI check. Unfortunately, printing the schema twice, seems to not be guaranteed to print values in the same order (especially keys in object types, and field arguments). This makes consistency checks significantly harder.

It'd be great if there was a guarantee of determinism. Running the printer repeatedly, against a given schema always outputs the same file.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.